From 94cbe0c12ade07c5ae2a1eaf980ecea1829d0bf5 Mon Sep 17 00:00:00 2001 From: Preston Smith Date: Wed, 31 Aug 2016 02:44:36 -0500 Subject: [PATCH] Comments --- Source/Core/VideoBackends/Software/TransformUnit.cpp | 4 +++- Source/Core/VideoCommon/VertexShaderGen.cpp | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Source/Core/VideoBackends/Software/TransformUnit.cpp b/Source/Core/VideoBackends/Software/TransformUnit.cpp index 3283bdaf51..38734fa17c 100644 --- a/Source/Core/VideoBackends/Software/TransformUnit.cpp +++ b/Source/Core/VideoBackends/Software/TransformUnit.cpp @@ -180,7 +180,9 @@ static void TransformTexCoordRegular(const TexMtxInfo& texinfo, int coordNum, bo } } - // TODO write comment + // When q is 0, the GameCube appears to have a special case + // This can be seen in devkitPro's neheGX Lesson08 example for Wii + // Makes differences in Rogue Squadron 3 (Hoth sky) and The Last Story (shadow culling) if (dst->z == 0.0f) { dst->x = MathUtil::Clamp(dst->x / 2.0f, -1.0f, 1.0f); diff --git a/Source/Core/VideoCommon/VertexShaderGen.cpp b/Source/Core/VideoCommon/VertexShaderGen.cpp index 469f273d89..5c516e0053 100644 --- a/Source/Core/VideoCommon/VertexShaderGen.cpp +++ b/Source/Core/VideoCommon/VertexShaderGen.cpp @@ -381,8 +381,10 @@ ShaderCode GenerateVertexShaderCode(APIType api_type, const vertex_shader_uid_da i, i, i, i); } - // TODO write comment - // TODO check if it only affects XF_TEXGEN_REGULAR more + // When q is 0, the GameCube appears to have a special case + // This can be seen in devkitPro's neheGX Lesson08 example for Wii + // Makes differences in Rogue Squadron 3 (Hoth sky) and The Last Story (shadow culling) + // TODO: check if this only affects XF_TEXGEN_REGULAR if (texinfo.texgentype == XF_TEXGEN_REGULAR) { out.Write("if(o.tex%d.z == 0.0f)\n", i);