mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-23 18:59:19 +00:00
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:
parent
bd14fa89d7
commit
04785bffb8
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue