From 1dc1a8b346add10c17c564e0c91754881e0af8dd Mon Sep 17 00:00:00 2001 From: EngineersBox Date: Fri, 17 May 2024 13:50:04 +1000 Subject: [PATCH] Fixed GP0(E2h) texture coordinate calculation wrapping --- docs/graphicsprocessingunitgpu.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/graphicsprocessingunitgpu.md b/docs/graphicsprocessingunitgpu.md index 5b66cb5..f0269b5 100755 --- a/docs/graphicsprocessingunitgpu.md +++ b/docs/graphicsprocessingunitgpu.md @@ -411,7 +411,7 @@ for timing reasons...?
Mask specifies the bits that are to be manipulated, and Offset contains the new values for these bits, ie. texture X/Y coordinates are adjusted as so:
``` - Texcoord = (Texcoord AND (NOT (Mask*8))) OR ((Offset AND Mask)*8) + Texcoord = (Texcoord AND ((Mask*8)-1)) OR ((Offset AND Mask)*8) ``` The area within a texture window is repeated throughout the texture page. The data is not actually stored all over the texture page but the GPU reads the