utkutuzcu/tst / Engine /Shaders /ModShadowVolumePixelShader.usf
utkutuzcu's picture
download
raw
966 Bytes
/*=============================================================================
ModShadowVolumePixelShader.usf: Pixel shader for modulated shadow volumes
Copyright 1998-2008 Epic Games, Inc. All Rights Reserved.
=============================================================================*/
#include "Common.usf"
#include "ModShadowCommon.usf"
void Main(
in float4 ScreenPosition : TEXCOORD0,
out float4 OutColor : COLOR0
)
{
half SceneW = PreviousDepth(ScreenPosition);
#if MODSHADOW_LIGHTTYPE_DIRECTIONAL
// no attenuation necessary for directional lights
half ShadowAtt = 1;
#else
// attenuate between shadow color and white based on distance
half ShadowAtt = ShadowAttenuation(ScreenPosition,SceneW);
#endif
// 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.