参考 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().

示例

语法

panorama(img)

参数

img
p5.Image:

360˚ image to use as the background.

This page is generated from the comments in src/webgl/light.js . Please feel free to edit it and submit a pull request!

相关参考