There was an error while loading. Please reload this page.
Add texture to an object
to import textures, add a folder to your file directory
assets └─ textures │ └─ gravel │ │ │ ambient.png │ │ │ color.png │ │ │ displacement.png │ │ │ id.png │ │ │ normal.png │ │ │ roughness.png │ └─ wood │ │ bump.png │ │ color.png │ │ roughness.png
create a box, and add the gravel texture
new XR.Box({ texture:'/assets/textures/gravel' })
See CC0 Textures for free textures!