@gnsx/three 0.184.8 → 0.184.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/three.tsl.js +5 -1
- package/build/three.tsl.min.js +1 -1
- package/build/three.webgpu.js +480 -8
- package/build/three.webgpu.min.js +1 -1
- package/build/three.webgpu.nodes.js +480 -8
- package/build/three.webgpu.nodes.min.js +1 -1
- package/examples/jsm/helpers/LightProbeGridCubeMapHelper.js +222 -0
- package/examples/jsm/helpers/LightProbeGridHelper.js +223 -99
- package/examples/jsm/inspector/tabs/Settings.js +1 -1
- package/examples/jsm/lighting/LightProbeGrid.js +628 -84
- package/examples/jsm/tsl/lighting/DynamicLightsNode.js +19 -1
- package/package.json +1 -1
- package/src/Three.TSL.js +4 -0
- package/src/nodes/Nodes.js +3 -0
- package/src/nodes/TSL.js +4 -0
- package/src/nodes/accessors/CubeTextureNode.js +7 -1
- package/src/nodes/accessors/TextureNode.js +21 -1
- package/src/nodes/functions/material/getLightProbeGridIrradiance.js +68 -0
- package/src/nodes/lighting/LightProbeGridNode.js +137 -0
- package/src/nodes/lighting/LightsNode.js +98 -1
- package/src/renderers/common/Background.js +33 -0
- package/src/renderers/common/RenderList.js +28 -0
- package/src/renderers/common/RenderObjects.js +47 -0
- package/src/renderers/common/Renderer.js +32 -2
- package/src/renderers/common/nodes/NodeManager.js +24 -0
|
@@ -693,6 +693,30 @@ class NodeManager extends DataMap {
|
|
|
693
693
|
|
|
694
694
|
}
|
|
695
695
|
|
|
696
|
+
// WITH_GENESYS
|
|
697
|
+
/**
|
|
698
|
+
* Clears cached background and environment node state for `scene`.
|
|
699
|
+
*
|
|
700
|
+
* Does not call `texture.dispose()` on {@link Scene#background} or
|
|
701
|
+
* {@link Scene#environment}.
|
|
702
|
+
*
|
|
703
|
+
* @param {Scene} scene - The scene.
|
|
704
|
+
*/
|
|
705
|
+
clearSceneBackgroundAndEnvironmentNodes( scene ) {
|
|
706
|
+
|
|
707
|
+
if ( this.has( scene ) === false ) return;
|
|
708
|
+
|
|
709
|
+
const sceneData = this.get( scene );
|
|
710
|
+
|
|
711
|
+
delete sceneData.backgroundNode;
|
|
712
|
+
delete sceneData.background;
|
|
713
|
+
delete sceneData.backgroundBlurriness;
|
|
714
|
+
delete sceneData.environmentNode;
|
|
715
|
+
delete sceneData.environment;
|
|
716
|
+
|
|
717
|
+
}
|
|
718
|
+
// !WITH_GENESYS
|
|
719
|
+
|
|
696
720
|
/**
|
|
697
721
|
* This method is part of the caching of nodes which are used to represents the
|
|
698
722
|
* scene's background, fog or environment.
|