Преглед на файлове

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