Explorar o código

Pica/Rasterizer: Textures seem to be laid out flipped vertically.

Not sure if this is a correct fix. Probably should instead change the decoding logic itself.
Tony Wasserka %!s(int64=11) %!d(string=hai) anos
pai
achega
3b78af904e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/video_core/rasterizer.cpp

+ 1 - 1
src/video_core/rasterizer.cpp

@@ -214,7 +214,7 @@ void ProcessTriangle(const VertexShader::OutputVertex& v0,
                     }
                 };
                 s = GetWrappedTexCoord(registers.texture0.wrap_s, s, registers.texture0.width);
-                t = GetWrappedTexCoord(registers.texture0.wrap_t, t, registers.texture0.height);
+                t = registers.texture0.height - 1 - GetWrappedTexCoord(registers.texture0.wrap_t, t, registers.texture0.height);
 
                 u8* texture_data = Memory::GetPointer(PAddrToVAddr(texture.config.GetPhysicalAddress()));
                 auto info = DebugUtils::TextureInfo::FromPicaRegister(texture.config, texture.format);