khanat-opennel-code/code/snowballs2/bin/pp_test.cg
StudioEtrange 9bc219ee14 CMAKE TARGET : SHARED and MODULE
About Shared Library (shared) and Module Library (module) type of cmake target
INSTALL command has different behaviour for ARCHIVE LIBRARY RUNTIME depending on the platform
2014-02-16 19:43:44 +01:00

13 lines
No EOL
271 B
Text

void pp_test(
// Per fragment parameters
float2 texCoord : TEXCOORD0,
// Fragment program constants
uniform sampler2D cTex0 : TEX0,
// Output color
out float4 oCol : COLOR)
{
oCol.rba = float3(1.0, 0.0, 1.0);
oCol.g = tex2D(cTex0, texCoord).g;
}