sky.package
- ..
- README.md657 B
- bindings.yaml311 B
- shader.wgsl2.6 KB
This package holds more than this page lists. See all of its files in its world.
README.md
skyLight_faces
Gathers six square views, each 90 degrees across, into one equirectangular map of the whole sphere. Each output texel looks along its direction, takes the face that direction leans furthest toward, and reads the texel of that face the direction passes through.
Face order and bases (forward, up; right is their cross product):
| binding | forward | up |
|---|---|---|
face_px | +X | +Y |
face_nx | -X | +Y |
face_py | +Y | +Z |
face_ny | -Y | -Z |
face_pz | +Z | +Y |
face_nz | -Z | +Y |
Bindings
| name | kind |
|---|---|
face_px .. face_nz | texture2d |
env_out | storage2d (rgba16f) |