DynamicAlcove.cs
Dynamically creates a 3D alcove environment around the HologramCamera in Unity. Supports runtime updates, adjustable dimensions, and subdivided meshes for improved visual quality.
Dynamically creates a 3D alcove environment around the HologramCamera in Unity. Supports runtime updates, adjustable dimensions, and subdivided meshes for improved visual quality.
Thickness of the borders.
Default: 0.01f
Distance of the back wall from the camera.
Default: 1.0f
Material applied to the alcove walls.
Number of subdivisions along the X-axis for wall meshes.
Default: 2
Number of subdivisions along the Y-axis for wall meshes.
Default: 2
Whether to display walls in the Unity hierarchy.
Default: false
Destroys and recreates the alcove walls based on the HologramCamera calibration.
Constructs the alcove walls and borders around the camera.
float cameraSize: Size of the camera.
float screenAspect: Aspect ratio of the screen.
Destroys all walls in the alcove.
Creates a single wall with the specified material and parent transform.
string name: Name of the wall.
Material material: Material to apply.
Transform parent: Parent transform.
Returns: A GameObject representing the created wall.
Creates a subdivided quad mesh for better shadow rendering.
Vector3 bottomLeft: Bottom-left corner of the quad.
Vector3 bottomRight: Bottom-right corner of the quad.
Vector3 topLeft: Top-left corner of the quad.
Vector3 topRight: Top-right corner of the quad.
int subdivisionsX: Number of subdivisions along the X-axis.
int subdivisionsY: Number of subdivisions along the Y-axis.
Returns: A Mesh of the generated quad.