Creates a skybox with the given cube map images and optional roughness for PBR.
The canvas context used for rendering and texture creation.
Array of 6 ImageBitmap objects representing cube map faces.
Optional roughness value (default is 1.0).
View matrices for each face of the cube map.
WebGL cube texture representing the skybox.
Vertex positions used to render a cube for environment mapping.
Internal reference to cube map face enums used in rendering.
Input cube map images for the skybox. One per face.
Cube texture storing irradiance map for diffuse lighting.
Normal map texture used in IBL (if needed).
Cube texture storing prefiltered environment map for specular IBL.
Projection matrix used to render the cube faces.
Vertex positions used to render a full-screen quad.
Surface roughness used in specular reflection calculations.
Width and height (in pixels) of the cube map textures.
StaticbrdfLUTTextureStatic texture used for BRDF LUT (shared across instances).
Reloads all skybox-related resources, including textures and geometry. Useful when changing environment maps or shader settings.
The rendering canvas context.
StaticsolidCreates a solid color skybox from the canvas background color. Useful as a fallback or for non-environmental scenes.
The WebaniCanvas instance.
A WebaniSkybox instance with a single-color cube map.
Represents a skybox for a WebGL-based scene, including PBR-related maps like irradiance, prefiltered environment maps, and BRDF LUTs.