Reference panorama()

panorama()

Creates an immersive 3D background.

panorama() transforms images containing 360˚ content, such as maps or HDRIs, into immersive 3D backgrounds that surround a sketch. Exploring the space requires changing the camera's perspective with functions such as orbitControl() or camera().

Examples

Syntax

panorama(img)

Parameters

img
p5.Image:

360˚ image to use as the background.

Notice any errors or typos? Please let us know. Please feel free to edit src/webgl/light.js and open a pull request!

Related References