Преглед изворни кода

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 пре 6 година
родитељ
комит
69aba65161
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/renderers/webgl/WebGLMorphtargets.js

+ 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 );

粤ICP备19079148号