| /*============================================================================= | |
| ModShadowVolumePixelShader.usf: Pixel shader for modulated shadow volumes | |
| Copyright 1998-2008 Epic Games, Inc. All Rights Reserved. | |
| =============================================================================*/ | |
| void Main( | |
| in float4 ScreenPosition : TEXCOORD0, | |
| out float4 OutColor : COLOR0 | |
| ) | |
| { | |
| half SceneW = PreviousDepth(ScreenPosition); | |
| // no attenuation necessary for directional lights | |
| half ShadowAtt = 1; | |
| // attenuate between shadow color and white based on distance | |
| half ShadowAtt = ShadowAttenuation(ScreenPosition,SceneW); | |
| // add modulated/attenuated shadow color to shadow | |
| float4 ShadowedColor = lerp(float4(1,1,1,1),ShadowModulateColor,ShadowAtt); | |
| // RETURN_COLOR not needed with modulative blending | |
| OutColor = ShadowedColor; | |
| } | |
Xet Storage Details
- Size:
- 966 Bytes
- Xet hash:
- 5caa1e955be8414b92c0d41ea5ea110ef949843d2e7462e49e048385f51c2ee5
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.