-
Notifications
You must be signed in to change notification settings - Fork 122
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
deps: Bump Three.js to r151 #1218
Conversation
This does not work yet, there are compatibility breaks around shaders See: #1198
@@ -161,7 +171,7 @@ vec3 getDiffuse( | |||
} | |||
|
|||
void RE_Direct_MToon( const in IncidentLight directLight, const in GeometricContext geometry, const in MToonMaterial material, const in float shadow, inout ReflectedLight reflectedLight ) { | |||
float dotNL = saturate( dot( geometry.normal, directLight.direction ) ); | |||
float dotNL = clamp( dot( geometry.normal, directLight.direction ), -1.0, 1.0 ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
光の当たっていない側にトゥーンのfeatherを動かせられなかったのを修正しました。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NICE 👍
#if THREE_VRM_THREE_REVISION >= 151 | ||
vUv = uv; | ||
#else | ||
vUv = ( uvTransform * vec3( uv, 1 ) ).xy; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[memo]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NICE 👍
will resolve #1198
Description
This PR bumps Three.js to r151.
This PR also fixes shader errors in r151 while maintaining compatibility before r151.
Also added a feature test scene for MToon.
See: https://github.com/mrdoob/three.js/releases/tag/r151
TODO