Преглед изворни кода

Pica/TextureEnvironment: Add a note.

Tony Wasserka пре 11 година
родитељ
комит
81ebb4d682
1 измењених фајлова са 4 додато и 0 уклоњено
  1. 4 0
      src/video_core/rasterizer.cpp

+ 4 - 0
src/video_core/rasterizer.cpp

@@ -277,6 +277,10 @@ static void ProcessTriangleInternal(const VertexShader::OutputVertex& v0,
                             return 0;
                     }
                 };
+
+                // Textures are laid out from bottom to top, hence we invert the t coordinate.
+                // NOTE: This may not be the right place for the inversion.
+                // TODO: Check if this applies to ETC textures, too.
                 s = GetWrappedTexCoord(texture.config.wrap_s, s, texture.config.width);
                 t = texture.config.height - 1 - GetWrappedTexCoord(texture.config.wrap_t, t, texture.config.height);