Browse Source

Add a mesh getter (#8524)

Popov72 5 years ago
parent
commit
aeba9f4391
1 changed files with 7 additions and 1 deletions
  1. 7 1
      src/Helpers/videoDome.ts

+ 7 - 1
src/Helpers/videoDome.ts

@@ -55,9 +55,15 @@ export class VideoDome extends TransformNode {
     protected _material: BackgroundMaterial;
 
     /**
-     * The surface used for the skybox
+     * The surface used for the video dome
      */
     protected _mesh: Mesh;
+    /**
+     * Gets the mesh used for the video dome.
+     */
+    public get mesh(): Mesh {
+        return this._mesh;
+    }
 
     /**
      * A mesh that will be used to mask the back of the video dome in case it is a 180 degree movie.