Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Search:

Type: Posts; User: natasa

Search: Search took 0.00 seconds.

  1. Replies
    2
    Views
    1,237

    Thanks a lot! Now my code works perfectly. ...

    Thanks a lot!
    Now my code works perfectly.

    (I indeed got the same problem with only the brackets which should have made me think a little bit harder...)
  2. Replies
    2
    Views
    1,237

    If command not working in the fragment shader

    I'm fairly new to GLSL but all seems to work except one if. I'm trying to use the following code in the fragment shader:

    [some code here]
    void main (void)
    {
    if (enablelighting) { ...
Results 1 to 2 of 2