-
Notifications
You must be signed in to change notification settings - Fork 1
Image
Josh Stovall edited this page Dec 3, 2020
·
1 revision
Import an image.
Hang some photos on the walls :)
new XR.Reality();
new XR.Image({
file:'/assets/img/monalisa.jpg'
});
See the live demo.
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 |