world_cache_query.wgsl
Import path
bevy_solari::world_cache
(click to copy)
WORLD_CACHE_MAX_TEMPORAL_SAMPLES
#
Copy import statement
const
WORLD_CACHE_MAX_TEMPORAL_SAMPLES:
f32
=
32.0
WORLD_CACHE_DIRECT_LIGHT_SAMPLE_COUNT
#
Copy import statement
const
WORLD_CACHE_DIRECT_LIGHT_SAMPLE_COUNT:
u32
=
32u
WORLD_CACHE_MAX_GI_RAY_DISTANCE
#
Copy import statement
const
WORLD_CACHE_MAX_GI_RAY_DISTANCE:
f32
=
50.0
WORLD_CACHE_CELL_UPDATES_SOFT_CAP
#
Copy import statement
const
WORLD_CACHE_CELL_UPDATES_SOFT_CAP:
u32
=
40000u
WORLD_CACHE_CELL_LIFETIME
#
Copy import statement
const
WORLD_CACHE_CELL_LIFETIME:
u32
=
10u
WORLD_CACHE_MAX_SEARCH_STEPS
#
Copy import statement
const
WORLD_CACHE_MAX_SEARCH_STEPS:
u32
=
3u
WORLD_CACHE_POSITION_BASE_CELL_SIZE
#
Copy import statement
const
WORLD_CACHE_POSITION_BASE_CELL_SIZE:
f32
=
0.15
WORLD_CACHE_POSITION_LOD_SCALE
#
Copy import statement
const
WORLD_CACHE_POSITION_LOD_SCALE:
f32
=
15.0
WORLD_CACHE_EMPTY_CELL
#
Copy import statement
const
WORLD_CACHE_EMPTY_CELL:
u32
=
0u
query_world_cache
#
Copy import statement
fn
query_world_cache
(
,
,
,
,
cell_lifetime:
u32
,
)
->
vec3<f32>
get_cell_size
#
Copy import statement
fn
get_cell_size
(
,
,
)
->
f32
quantize_position
#
Copy import statement
fn
quantize_position
(
,
quantization_factor:
f32
)
->
vec3<f32>
quantize_normal
#
Copy import statement
compute_key
#
Copy import statement
fn
compute_key
(
,
)
->
u32
compute_checksum
#
Copy import statement
fn
compute_checksum
(
,
)
->
u32
pcg_hash
#
Copy import statement
fn
pcg_hash
(
)
->
u32
iqint_hash
#
Copy import statement
fn
iqint_hash
(
)
->
u32
wrap_key
#
Copy import statement
fn
wrap_key
(
)
->
u32