Skip to main content

Module scene

Module scene 

Expand description

Rendering entities and scene data.

Modules§

gpu_material
GPU-side material projection.
lighting
Lighting uniform structures.
material_uniforms
Model and material uniform structures.
mesh
Defines data structures for mesh representation.
render_object
Structure representing a draw call.

Structs§

CullingUniformsData
Data for the light culling compute shader.
DirectionalLightUniform
Data for a single directional light, formatted for GPU consumption.
GpuMaterial
A GPU-ready representation of a material: its uniform buffer, the PBR texture views it declares, the shared sampler, and a ready-to-bind group-2 bind group.
GpuMesh
A GPU-ready representation of a mesh, containing buffer IDs and draw parameters.
LightingUniforms
The structure of the global lighting uniform buffer.
MaterialUniforms
Data for a material’s properties, formatted for the standard Lit Shader.
Mesh
Represents a complete mesh with vertex data and indices.
ModelUniforms
Data for a model’s transform, formatted for GPU consumption.
PointLightUniform
Data for a single point light, formatted for GPU consumption.
RenderObject
A low-level representation of a single draw call to be processed by a [RenderLane].
SpotLightUniform
Data for a single spot light, formatted for GPU consumption.

Constants§

MAX_DIRECTIONAL_LIGHTS
Constants for maximum light counts.
MAX_POINT_LIGHTS
Maximum number of point lights supported in the global lighting buffer.
MAX_SPOT_LIGHTS
Maximum number of spot lights supported in the global lighting buffer.