Texturing a cube


I have been trying, with limited success, to texture the sides of a cube. I am able to get a texture applied to a cube mesh but the texture is distored. I assume I need to specify that the faces need to be individually textured and that I need to specify texture coordinates but im not sure how to do this.

Im a beginner at 3D programming in general so there might be something basic im missing.

(Gray Olson) #2

The easiest way to do this would be to create the cube in, say, Blender, unwrap and texture it there, then export it as a glTF and import that into Amethyst.

1 Like

Thanks for the reply, I might just copy the example scene in the amethyst examples, I wish I could figure this code out though. I feel like the skybox plugin must be doing something similar to texturing a cubeā€¦