|
@@ -62,6 +62,7 @@ import * as Geometries from '../geometries/Geometries.js';
|
|
|
import { getTypedArray, error, warn } from '../utils.js';
|
|
import { getTypedArray, error, warn } from '../utils.js';
|
|
|
import { Box3 } from '../math/Box3.js';
|
|
import { Box3 } from '../math/Box3.js';
|
|
|
import { Sphere } from '../math/Sphere.js';
|
|
import { Sphere } from '../math/Sphere.js';
|
|
|
|
|
+import { SphericalHarmonics3 } from '../math/SphericalHarmonics3.js';
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* A loader for loading a JSON resource in the [JSON Object/Scene format](https://github.com/mrdoob/three.js/wiki/JSON-Object-Scene-format-4).
|
|
* A loader for loading a JSON resource in the [JSON Object/Scene format](https://github.com/mrdoob/three.js/wiki/JSON-Object-Scene-format-4).
|
|
@@ -920,7 +921,8 @@ class ObjectLoader extends Loader {
|
|
|
|
|
|
|
|
case 'LightProbe':
|
|
case 'LightProbe':
|
|
|
|
|
|
|
|
- object = new LightProbe().fromJSON( data );
|
|
|
|
|
|
|
+ const sh = new SphericalHarmonics3().fromArray( data.sh );
|
|
|
|
|
+ object = new LightProbe( sh, data.intensity );
|
|
|
|
|
|
|
|
break;
|
|
break;
|
|
|
|
|
|