mirror of
https://github.com/mamedev/mame.git
synced 2024-11-16 07:48:32 +01:00
Fixed rotated source tile mode
- and corrected aperture texture name
This commit is contained in:
parent
7add547602
commit
4c7e845498
2 changed files with 3 additions and 3 deletions
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue