From 4c7e845498c29548b4842ac82f7e0799ffc9b5af Mon Sep 17 00:00:00 2001 From: ImJezze Date: Sat, 12 Mar 2016 18:59:36 +0100 Subject: [PATCH] Fixed rotated source tile mode - and corrected aperture texture name --- artwork/{adapture-grill.png => aperture-grille.png} | Bin hlsl/post.fx | 6 +++--- 2 files changed, 3 insertions(+), 3 deletions(-) rename artwork/{adapture-grill.png => aperture-grille.png} (100%) diff --git a/artwork/adapture-grill.png b/artwork/aperture-grille.png similarity index 100% rename from artwork/adapture-grill.png rename to artwork/aperture-grille.png diff --git a/hlsl/post.fx b/hlsl/post.fx index ce8ccd0c813..77344113d0b 100644 --- a/hlsl/post.fx +++ b/hlsl/post.fx @@ -174,18 +174,18 @@ float2 GetShadowCoord(float2 QuadCoord, float2 SourceCoord) float2 shadowUV = ShadowUV; float2 shadowCount = ShadowCount; - canvasCoord = !VectorScreen && SwapXY + canvasCoord = !VectorScreen && ShadowTileMode == 0 && SwapXY ? canvasCoord.yx : canvasCoord.xy; - shadowCount = !VectorScreen && SwapXY + shadowCount = !VectorScreen && ShadowTileMode == 0 && SwapXY ? shadowCount.yx : shadowCount.xy; float2 shadowTile = canvasTexelDims * shadowCount; float2 shadowFrac = frac(canvasCoord / shadowTile); - shadowFrac = !VectorScreen && SwapXY + shadowFrac = !VectorScreen && ShadowTileMode == 0 && SwapXY ? shadowFrac.yx : shadowFrac.xy;