Builtin Library
- ..
- README.md606 B
- bindings.yaml503 B
- shader.wgsl15.8 KB
README.md
surface_weather
Weathers surfaces in place: wetness darkens and flattens, snow accumulates on what faces up.
Bindings
| name | kind |
|---|---|
scene_color | texture2d |
scene_depth | texture_depth |
scene_normal | texture2d |
frame_cam | buffer, read vec4<f32> |
lights | buffer, read vec4<f32> |
weather_params | buffer, read vec4<f32> |
weather_cover | buffer, read f32 |
weather_out | storage2d (rgba16f) |
weather_out holds linear light, which the wet sheen's additive reflections can carry past 1.0 — an 8-bit target would clamp it.