2
0
Эх сурвалжийг харах

Remove clamp-to-zero from WebGL morph target code

On further reflection it shouldn't be necessary - it's probably better
to maintain "exact" match between the shader code and CPU-side code that
may use (pos - morph) * w directly.
Arseny Kapoulkine 5 жил өмнө
parent
commit
69aba65161

+ 1 - 1
src/renderers/webgl/WebGLMorphtargets.js

@@ -98,7 +98,7 @@ function WebGLMorphtargets( gl ) {
 
 		}
 
-		var morphBaseInfluence = geometry.morphTargetsRelative ? 1 : Math.max(0, 1 - morphInfluencesSum);
+		var morphBaseInfluence = geometry.morphTargetsRelative ? 1 : 1 - morphInfluencesSum;
 
 		program.getUniforms().setValue( gl, 'morphTargetBaseInfluence', morphBaseInfluence );
 		program.getUniforms().setValue( gl, 'morphTargetInfluences', morphInfluences );