* marshal fog/fogexp2 .name * use object literal
@@ -785,6 +785,12 @@ class ObjectLoader extends Loader {
}
+ if ( data.fog.name !== '' ) {
+
+ object.fog.name = data.fog.name;
+ }
if ( data.backgroundBlurriness !== undefined ) object.backgroundBlurriness = data.backgroundBlurriness;
@@ -25,6 +25,7 @@ class Fog {
return {
type: 'Fog',
+ name: this.name,
color: this.color.getHex(),
near: this.near,
far: this.far
@@ -23,6 +23,7 @@ class FogExp2 {
type: 'FogExp2',
density: this.density
};