I have variables in my shader declared as such:
float3 f3MotionVector = float3(0.0f, 0.0f, 0.0f);
float4 fvWhite = float4(1.0f, 1.0f, 1.0f, 1.0f);
float4 fvTintColor = {1.0f, 0.0f, 1.0f, 1.0f};
float fBumpMapSmoothness = 1.0f;
float fSmoothness = 1.0f;
I can use shader reflection to get the variables to populate my constant buffer with but I need to set the default values in the buffer. Unfortunately the DefaultValue field is always 0. Is there another way I can get at these values or a way to make the DefaultValue field not 0?
Using the March 09 SDK.
Thanks,
Jeremy