Parameter | Details |
---|---|
type | The parameter's type, it has to be a GLSL built-in type. |
To specify which version of GLSL should be used to compile a shader, use the version preprocessor e.g. #version 330
. Each version of OpenGL is required to support specific versions of GLSL. If a #version
preprocessor is not defined at the top of a shader, the default version 1.10 is used.