Pixel Shader 3.0 unexpected results,
Members - Reputation: 238
Posted 19 February 2012 - 08:57 PM
This seems SO simple. I have a Vector 3:
and a shader constant float3 EyePosition
I assign my Vector3 to my shader constant just before the draw call:
This variable is not used or altered anyplace else, in either the program or in the shader.
BUT, when I debug the pixel shader in PIX it shows EyePosition= (414.855, 823.112, 1024.000, 0.000);
Can somebody please explain to me WHY (tF!) my constant is getting changed? Is the interpolater being invoked for some reason? I hate asking dumb questions but I can't see any logical explanation for this whatsoever.
Crossbones+ - Reputation: 3428
Posted 20 February 2012 - 03:00 AM
If you're still seeing the same results when it gets used and affects that shader output, it might be best to post a complete compilable shader so other people can try it for themselves.