Hi,
I'm working through the Optimization Tutorial: Particles and High-Frequency Code sample.
I've made every change (I think) but I get the following error and can't figure out why or how to fix it - I'm very, very new to this :O)
Error 1 Errors compiling ... \SimpleScreen.fx:
.. \SimpleScreen.fx(33): error X3004: undeclared identifier 'AttractorPos'
the error occurs in this line in the shader code:
float3 distV = attractorPos - In.ObjectPos;
even though earlier in the code, following the tutorial, i have entered:
struct VS_OUTPUT
{
float4 ScreenPos: POSITION;
float4 VertexColor: COLOR;
float3 attractorPos;
};
do you think it is an error in the shader code or the C#?
please help!
Thanks,
kingkatt