- Home /
Question by
MikeMarcin · Oct 19, 2013 at 02:25 AM ·
shader
CG -> GLSL Version Target
I'm wring a CGPROGRAM shader with #pragma glsl.
I keep running into issues such as:
/* NOTE: GLSL optimization failed
0:337(28): error: bit operations require GLSL 1.30
0:337(28): error: type mismatch
0:337(43): error: bit operations require GLSL 1.30
0:337(43): error: type mismatch
*/
And
Shader error in '': GLSL vertex shader: 308:
ERROR: 'float4x2' : not supported in pre-GLSL1.20 at line 23
I am completely okay with targeting up to GLSL version 3.30.6.
How do I get the shader compiler to target a higher version?
Comment
Answer by stektpotet · Aug 05, 2018 at 04:58 PM
Late response...
I think this might be what you're looking for: https://docs.unity3d.com/Manual/SL-ShaderCompileTargets.html
look under #pragma target
Your answer
Follow this Question
Related Questions
How to force the compilation of a shader in Unity? 5 Answers
UI shader; get simple UV 0 Answers
Need to compare 2 depth images (16 bit)... 0 Answers
Unity VR texture shimmer? 1 Answer
Shader which supports vertex colors and pixel lights? 1 Answer