I am compiling a shader with old version, command> "glslangValidator shader.frag -G --aml"
, but the the compiler report the issue:
"ERROR: #version: Desktop shaders for OpenGL SPIR-V require version 330 or higher",
I wonder is the glslang able to compile the shader with the version lower than 330 ?
Thanks
version 130
in vec4 Color;
in vec4 texColor0;
in vec4 texColor1;
out vec4 FragColor;
Hi all,
I am compiling a shader with old version, command> "glslangValidator shader.frag -G --aml" , but the the compiler report the issue: "ERROR: #version: Desktop shaders for OpenGL SPIR-V require version 330 or higher", I wonder is the glslang able to compile the shader with the version lower than 330 ?
Thanks
version 130
in vec4 Color; in vec4 texColor0; in vec4 texColor1; out vec4 FragColor;
void main() { FragColor = Color + texColor0 + texColor1; }