Skip to content
Josh Stovall edited this page Dec 3, 2020 · 1 revision

Image()

Import an image.

Hang some photos on the walls :)

new XR.Reality();

new XR.Image({
  file:'/assets/img/monalisa.jpg'
});

See the live demo.

Parameters

Name Type Options Default Description
file string .jpg or .png file source file
scale float 1 scale of image
side string front back both both which side to render
position array [x,y,z] position [0,0,0] position of image
rotation array [x,y,z] rotation [0,0,0] rotation of image
Clone this wiki locally