mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-11 20:15:48 +00:00
VideoCommon: vertex shader gen, add passthrough of texture coordinates for custom models
This commit is contained in:
parent
6f1a8e281b
commit
a176d8ffd8
1 changed files with 5 additions and 0 deletions
|
@ -946,6 +946,11 @@ void WriteVertexBody(APIType api_type, const ShaderHostConfig& host_config,
|
|||
"vertex_lighting_1.y, 1);\n",
|
||||
i);
|
||||
break;
|
||||
case TexGenType::Passthrough:
|
||||
out.Write("\tvertex_output.texture_coord_{0}.xyz = vec3(vertex_input.texture_coord_{0}.x, "
|
||||
"vertex_input.texture_coord_{0}.y, 1);\n",
|
||||
i);
|
||||
break;
|
||||
case TexGenType::Regular:
|
||||
out.Write("\tvertex_output.texture_coord_{0} = "
|
||||
"dolphin_transform_texcoord{0}(vertex_input.texture_coord_{0});\n",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue