Skip to main content

upload_sky_cubemap

Function upload_sky_cubemap 

Source
fn upload_sky_cubemap(device: &Device, queue: &Queue) -> Texture
Expand description

Create the procedural cube map and fill each of its six faces.

The faces are generated on the CPU from a deterministic hash of the direction each texel looks along, so the pattern is continuous across face seams and identical on every machine — which is what lets a snapshot pin it.