Explorar o código

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 %!s(int64=6) %!d(string=hai) anos
pai
achega
69aba65161
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 );