pixel shader compile error

Started by
10 comments, last by janos 18 years, 7 months ago
double doh. Your right, the only thing a pixel shader should return is the final colour of the pixel. Wasn't looking closely enough.
Advertisement
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.
Act of War - EugenSystems/Atari

This topic is closed to new replies.

Advertisement