-
-
Notifications
You must be signed in to change notification settings - Fork 35.5k
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
Override Material: Morph Targets #18062
Comments
I can confirm this worked with |
Simplified example:
The problem is that setting @zeux It seems the uniform if ( material.morphTargets === true && object.morphTargetInfluences === undefined ) {
program.getUniforms().setValue( _gl, 'morphTargetBaseInfluence', 1 );
} Can you think of a better way fixing this? Maybe we can refactor |
Yeah we definitely need to always set the base influence if the material being used has the morph target shader variant. I will take a look... |
FYI: the same problem occurs when |
Description of the problem
I'm using
MeshNormalMaterial
andMeshDepthMaterial
as override materials and I sometimes setmorphTargets
totrue
. Now inthree@0.111.0
, this setting prevents objects without morph targets from being rendered altogether.I'm not sure if this behaviour is intentional but since this change hasn't been documented I thought I should let you know.
Sandbox
Uncomment line 23 in
index.js
:https://codesandbox.io/s/override-material-morph-targets-06hjw
Three.js version
Browser
OS
The text was updated successfully, but these errors were encountered: