Explorar o código

Simplified setting material.program.

tschw %!s(int64=10) %!d(string=hai) anos
pai
achega
99e3d99a94
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      src/renderers/WebGLRenderer.js

+ 1 - 2
src/renderers/WebGLRenderer.js

@@ -1269,8 +1269,6 @@ THREE.WebGLRenderer = function ( parameters ) {
 
 		}
 
-		material.program = properties.get( material ).program; // TODO: Do this at compile time
-
 	}
 
 	function projectObject( object ) {
@@ -1614,6 +1612,7 @@ THREE.WebGLRenderer = function ( parameters ) {
 		}
 
 		materialProperties.program = program;
+		material.program = program;
 
 		var attributes = program.getAttributes();
 

粤ICP备19079148号