Fixed rotated source tile mode

- and corrected aperture texture name
This commit is contained in:
ImJezze 2016-03-12 18:59:36 +01:00
parent 7add547602
commit 4c7e845498
2 changed files with 3 additions and 3 deletions

View file

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

View file

@ -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;