Explorar o código

emissiveIntensity

Tentone %!s(int64=8) %!d(string=hai) anos
pai
achega
56f5dda4db
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/materials/Material.js

+ 2 - 0
src/materials/Material.js

@@ -162,6 +162,8 @@ Object.assign( Material.prototype, EventDispatcher.prototype, {
 		if ( this.metalness !== undefined ) data.metalness = this.metalness;
 
 		if ( this.emissive && this.emissive.isColor ) data.emissive = this.emissive.getHex();
+		if ( this.emissiveIntensity !== 1) data.emissiveIntensity = this.emissiveIntensity;
+
 		if ( this.specular && this.specular.isColor ) data.specular = this.specular.getHex();
 		if ( this.shininess !== undefined ) data.shininess = this.shininess;
 		if ( this.clearCoat !== undefined ) data.clearCoat = this.clearCoat;