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...)
Type: Posts; User: natasa
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...)
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) { ...