Vertex shader gen changes to use passthrough texture gen mode for custom meshes, likely temporary until optimizations have been made

This commit is contained in:
iwubcode 2024-01-20 19:57:24 -06:00
commit 04785bffb8

View file

@ -514,6 +514,9 @@ ShaderCode GenerateVertexShaderCode(APIType api_type, const ShaderHostConfig& ho
case TexGenType::Color1:
out.Write("o.tex{}.xyz = float3(o.colors_1.x, o.colors_1.y, 1);\n", i);
break;
case TexGenType::Passthrough:
out.Write("o.tex{}.xyz = float3(coord.x, coord.y, 1);\n", i);
break;
case TexGenType::Regular:
out.Write("o.tex{0}.xyz = dolphin_transform_texcoord{0}(coord);\n", i);
break;