@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.
@@ -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.