0
W trakcie analizy

#pragma glsl needed!

David Miranda 9 lat temu zaktualizowano 9 lat temu 8
Would be possible to (optionally) add this directive? otherwise my shader won't work on Mac.
Thanks.

Odpowiedź

Odpowiedź
W trakcie analizy
This should be added automatically. Is OpenGL enabled in the shader settings?
Odpowiedź
W trakcie analizy
This should be added automatically. Is OpenGL enabled in the shader settings?
Yes, it is. I tested every option available 
How does your node tree look?
Right, when you're using the code node, all bets are off :) I should add a #pragma glsl toggle under the experimental settings
I have made some tests with a very simple one, without any custom code, switching between forward, deferred... but #pragma glsl never appears
It appears when it's needed, unless you're using something in the code node that requires it. For instance, textures in the vertex offset input, requires #pragma glsl
Oh, yes, you are right. Or when using tex2Dlod. So I can plug a 0 into a MIP input and we have a workaround here ^^