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?

Late response…

I think this might be what you’re looking for:

look under #pragma target