Explorar o código

NodeMaterial: Ensure defines are properly set.

Mugen87 %!s(int64=4) %!d(string=hai) anos
pai
achega
82cc2feca5
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      examples/jsm/nodes/materials/NodeMaterial.js

+ 1 - 0
examples/jsm/nodes/materials/NodeMaterial.js

@@ -63,6 +63,7 @@ NodeMaterial.prototype.onBeforeCompile = function ( shader, renderer ) {
 
 	this.build( { renderer: renderer } );
 
+	shader.defines = this.defines;
 	shader.uniforms = this.uniforms;
 	shader.vertexShader = this.vertexShader;
 	shader.fragmentShader = this.fragmentShader;