Box constructs a box-type 3D primitive in your scene.
It can be sized through
dimDepth properties, which take
numeric values measured in meters. If one of these dimensions is not specified,
it defaults to 1.
Like all 3D primitives, Box also supports the
lit is true, the Box's materials are affected by scene lighting.
wireframe is true, the Box will render in a wireframe style.
texture is specified, React VR will look up the corresponding image
and use it to texture the Box. This can be a string, an asset() call, or a require().
depth of the box in meters
height of the box in meters
width of the box in meters
The lit property specifies if the Model will be affected by lights placed in the scene.
set material parameters in three.js
texture is a string specifying the url of the texture to be used for the Model, this will be
an http address
Specifying true for this property will cause the object to be displayed as a wireframe
You can file an issue on GitHub if you see a typo or error on this page!