- Home /
Question by
techDev · Dec 22, 2014 at 11:15 AM ·
shadershaderlabopenglopengl es2.0
Why Unity compiled shader doesn't use the GLSLPROGRAM/GLSL syntax?
Quoting the Documentation
"GLSL program snippets are written
between GLSLPROGRAM and ENDGLSL
keywords. "
, but strangely the compiled shader for the Android platform doesn't use GLSLPROGRAM/GLSL syntax, instead it uses something like this :
Program "fp" { SubProgram "gles " {
"!!GLES" }
or
SubProgram "gles3 " {
"!!GLES3#version 300 es
}
1) Should I use this syntax instead of GLSLPROGRAM/GLSL?
2) why do we need the "!!GLES3#version 300 es" and "!!GLES" strings?
Comment
Your answer
Follow this Question
Related Questions
GL.lines Drawing over Objects 0 Answers
How do I use advanced OpenGL blend mode ? 0 Answers
GLES20: vprog textures are used, but not supported. 1 Answer
Shader on IOS turns dark 1 Answer
clipping shader for OpenGL quad 0 Answers