Explorar o código

WebGLObjects: Switch to program.getUniforms().

Mr.doob %!s(int64=10) %!d(string=hai) anos
pai
achega
809f7353bf
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  1. 4 2
      src/renderers/webgl/WebGLObjects.js

+ 4 - 2
src/renderers/webgl/WebGLObjects.js

@@ -160,9 +160,11 @@ THREE.WebGLObjects = function ( gl, info ) {
 
 			if ( material.program !== undefined ) {
 
-				if ( material.program.uniforms.morphTargetInfluences !== null ) {
+				var uniforms = material.program.getUniforms();
 
-					gl.uniform1fv( material.program.uniforms.morphTargetInfluences, morphInfluences );
+				if ( uniforms.morphTargetInfluences !== null ) {
+
+					gl.uniform1fv( uniforms.morphTargetInfluences, morphInfluences );
 
 				}