summaryrefslogtreecommitdiffstatshomepage
path: root/hlsl/post.fx
diff options
context:
space:
mode:
Diffstat (limited to 'hlsl/post.fx')
-rw-r--r--hlsl/post.fx4
1 files changed, 3 insertions, 1 deletions
diff --git a/hlsl/post.fx b/hlsl/post.fx
index dc7c4bd8322..eddc4bb8da5 100644
--- a/hlsl/post.fx
+++ b/hlsl/post.fx
@@ -194,7 +194,9 @@ float2 GetShadowCoord(float2 QuadCoord, float2 SourceCoord)
: shadowFrac.xy;
float2 shadowCoord = (shadowFrac * shadowUV);
- shadowCoord += 0.5f / shadowDims; // fix half texel offset (DX9)
+ shadowCoord += ShadowTileMode == 0
+ ? 0.5f / shadowDims // fix half texel offset (DX9)
+ : 0.0f;
return shadowCoord;
}