Code: Select all
fragment_program_ref main_fp
{
param_named constColor float4 1 0 0 1
}
Code: Select all
void main_fp(out float4 oColor : COLOR,
uniform float4 constColor)
{
oColor = constColor;
}
Code: Select all
fragment_program_ref main_fp
{
param_named constColor float3 1 0 0
}
Code: Select all
void main_fp(out float4 oColor : COLOR,
uniform float3 constColor)
{
oColor.xyz = constColor;
oColor.w = 1;
}
Furthermore the same odd effect occurs when passing the fragment program a "float2"--the data is all zeroed out. Even worse, if you pass the fragment program a simple "float", the application will crash somewhere inside the CG parser. Does anyone know what is going on here?
Thanks!
