pixel shader compile error
double doh. Your right, the only thing a pixel shader should return is the final colour of the pixel. Wasn't looking closely enough.
Try this :
Make the pixein and verteout structs the same
that is include a float4 pos : POSITION in pixin, even though you will not be able to access it.
BTW, I tested your code as is on Cg ps_2_0 profile and on HLSL, and it works fine.
Make the pixein and verteout structs the same
that is include a float4 pos : POSITION in pixin, even though you will not be able to access it.
BTW, I tested your code as is on Cg ps_2_0 profile and on HLSL, and it works fine.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement