hello guys,
I was working on my parallax shader and wanted to change the output depth, so that there is no abrupt clipping if 2 models overlap.
When I finally run the script for a first try, it told me, that COLOR1 must be a 4 component vector = it thinks my wonderful DEPTH output is a second color =/
Do I have to assert some things to make it work? Or can I run to the Future Forum and make a new request?
The important stuff in the code:
struct PS_OUT{
float4 color :COLOR0;
float depth :DEPTH0;
};
PS_OUT parallaxPS(VS_OUT IN){
PS_OUT OUT;
[...]
OUT.depth = abc;
OUT.color = xyz;
return OUT;
}