We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Related: #28
void main() { #ifdef CONDITION vec3 col = vec3( 1.0 ); #else vec3 col = vec3( 0.0 ); #endif gl_FragColor = vec4( col, 1.0 ); }
void main(){ #ifdef CONDITION vec3 C=vec3(1.); #else vec3 r=vec3(0.); #endif gl_FragColor=vec4(r,1.);}
void main(){ #ifdef CONDITION vec3 C=vec3(1.); #else vec3 C=vec3(0.); #endif gl_FragColor=vec4(C,1.);}
The text was updated successfully, but these errors were encountered:
Here, the workaround can be to declare the variable before the macro:
void main() { vec3 col; #ifdef CONDITION col = vec3( 1.0 ); #else col = vec3( 0.0 ); #endif gl_FragColor = vec4( col, 1.0 ); }
Sorry, something went wrong.
yes I'm using that workaround right now.
No branches or pull requests
Related: #28
Input
Actual
Expected
The text was updated successfully, but these errors were encountered: