Back home 🏡 WGSL Spec Bevy WGSL Functions

light_probe.wgsl

Import path

Structures

LightProbeQueryResult

#
The result of searching for a light probe.
Name Type
texture_index i32
intensity f32
light_from_world mat4x4<f32>

Functions

transpose_affine_matrix

#
fn transpose_affine_matrix(matrix: mat3x4<f32>) -> mat4x4<f32>
Parameter Type
matrix mat3x4<f32>
Returns: mat4x4<f32>

query_light_probe

#
Searches for a light probe that contains the fragment. TODO: Interpolate between multiple light probes.
fn query_light_probe(world_position: vec3<f32>, is_irradiance_volume: bool) -> LightProbeQueryResult
Parameter Type
world_position vec3<f32>
is_irradiance_volume bool
Returns: LightProbeQueryResult