Explorar o código

Serialize intensity

Al McElrath %!s(int64=10) %!d(string=hai) anos
pai
achega
31d25d1ee3
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/lights/HemisphereLight.js

+ 1 - 0
src/lights/HemisphereLight.js

@@ -37,6 +37,7 @@ THREE.HemisphereLight.prototype.toJSON = function ( meta ) {
 
 	data.object.color = this.color.getHex();
 	data.object.groundColor = this.groundColor.getHex();
+	data.object.intensity = this.intensity;
 
 	return data;