All pastes #922613 Raw Edit

Stuff

public text v1 · immutable
#922613 ·published 2008-02-28 22:05 UTC
rendered paste body
ShadowVertexToPixel ShadowVS( float4 inPos : POSITION)
{
    ShadowVertexToPixel Output = (ShadowVertexToPixel)0;
    float4x4 preWorldViewProjection = mul(xWorld, xSunViewProjection[xShadowMapIndex]);
    Output.Position =mul(inPos, preWorldViewProjection);
    Output.Depth.rba = 1;
    Output.Depth.g = Output.Position.z;
    return Output;
}

float4 ShadowPS(ShadowVertexToPixel PSIn): COLOR0
 {
	half4 White = {PSIn.Depth.g,PSIn.Depth.g, PSIn.Depth.g ,1};
     return White;
 }