Przeglądaj źródła

material is not readonly public

Raanan Weber 4 lat temu
rodzic
commit
35a234e2e7
1 zmienionych plików z 7 dodań i 0 usunięć
  1. 7 0
      src/Helpers/textureDome.ts

+ 7 - 0
src/Helpers/textureDome.ts

@@ -154,6 +154,13 @@ export abstract class TextureDome<T extends Texture> extends TransformNode {
     }
 
     /**
+     * The background material of this dome.
+     */
+    public get material(): BackgroundMaterial {
+        return this._material;
+    }
+
+    /**
      * Oberserver used in Stereoscopic VR Mode.
      */
     private _onBeforeCameraRenderObserver: Nullable<Observer<Camera>> = null;