Hi Solid, I was wondering, what might be causing the fail to load on OSX, being the following contents , do you have a suggestion to try and make it load?
#pragma parameter GAMMA_INPUT “Gamma Input” 2.4 0.1 5.0 0.01
#ifdef PARAMETER_UNIFORM
uniform float GAMMA_INPUT;
#else
#define GAMMA_INPUT 2.4
#endif
void main_vertex
(
float4 position : POSITION,
out float4 oPosition : POSITION,
uniform float4x4 modelViewProj,
float2 tex : TEXCOORD,
out float2 oTex : TEXCOORD
)
{
oPosition = mul(modelViewProj, position);
oTex = tex;
}
float4 main_fragment(uniform sampler2D tex : TEXUNIT0, float2 coords : TEXCOORD0) : COLOR
{
return pow(tex2D(tex, coords), GAMMA_INPUT);
}
Adding to that, I’ve tried compiling using the command line cgc , and it seems everything is fine
christian@Christians-MacBook-Pro:~/Games/EMUS/Analog Shader Pack version 3/shaders_cg/Analog Shader Pack/COMPONENT$ cgc linearize.cg -entry main_vertex
linearize.cg
26 lines, 0 errors.
vs_1_1
// cgc version 3.1.0013, build date Apr 18 2012
// command line args:
// source file: linearize.cg
//vendor NVIDIA Corporation
//version 3.1.0.13
//profile vs_1_1
//program main_vertex
//semantic main_vertex.modelViewProj
//var float4 position : $vin.POSITION0 : ATTR0 : 0 : 1
//var float4 oPosition : $vout.POSITION : HPOS : 1 : 1
//var float4x4 modelViewProj : : c[0], 4 : 2 : 1
//var float2 tex : $vin.TEXCOORD0 : ATTR7 : 3 : 1
//var float2 oTex : $vout.TEXCOORD0 : TEX0 : 4 : 1
mov oT0.xy, v7
dp4 oPos.w, v0, c3
dp4 oPos.z, v0, c2
dp4 oPos.y, v0, c1
dp4 oPos.x, v0, c0