Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Outline shader support uv2 morph #27

Merged
merged 1 commit into from
Dec 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/Loader/Shaders/mmdOutline.vertex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ void main(void)
vec3 normalUpdated = normal;
#ifdef UV1
vec2 uvUpdated = uv;
#endif
#ifdef UV2
vec2 uv2Updated = uv2;
#endif
#include<morphTargetsVertexGlobal>
#include<morphTargetsVertex>[0..maxSimultaneousMorphTargets]
Expand All @@ -85,7 +88,7 @@ void main(void)
vUV = vec2(diffuseMatrix * vec4(uvUpdated, 1.0, 0.0));
#endif
#ifdef UV2
vUV = vec2(diffuseMatrix * vec4(uv2, 1.0, 0.0));
vUV = vec2(diffuseMatrix * vec4(uv2Updated, 1.0, 0.0));
#endif
#endif
#include<clipPlaneVertex>
Expand Down