Actions
Emulator Issues #13734
open[Graphical emulation issue] Z-textures are incorrectly affected by swaptable
Status:
Fix pending
Priority:
Normal
Assignee:
-
% Done:
0%
Operating system:
N/A
Issue type:
Bug
Milestone:
Regression:
No
Relates to usability:
No
Relates to performance:
No
Easy:
No
Relates to maintainability:
No
Regression start:
Fixed in:
Description
Game Name/ID?
Any game
What's the problem? Describe what went wrong.
Current implementation does something like the following:
tevTex = getSample(uv, tmap).agrb;
zVal = dot(tevTex, zTex) + zbias;
Where the pixel value is swizzled depending on the swaptable. When the last stage texture is used for z-texture the swizzled value is used.
From testing I determined that Z-textures are unaffected by the swaptable, so something like the following should be done instead:
rawTevTex = getSample(uv, tmap);
tevTex = rawTevTex.agrb;
zVal = dot(rawTevTex, zTex) + zbias;
Is the issue present in the latest development version?
Yes, Issue occurring as of rev 2412-225
Is the issue present in the latest release?
Yes, as of rev 2409.0
Files
Actions