Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commit0a13e47b57

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):

bindingforwardup
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

namekind
face_px .. face_nztexture2d
env_outstorage2d (rgba16f)