Browse Source

WebGLObjects: Switch to program.getUniforms().

Mr.doob 10 years ago
parent
commit
809f7353bf
1 changed files with 4 additions and 2 deletions
  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 );
 
 				}