O'Reilly logo

Three.js Essentials by Jos Dirksen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adding textures and improving the lighting

So far, the maze looks rather simple. We've red walls on top of a gray ground plane. In this section, we'll improve how the scene looks with a couple of simple steps. First, we'll set up a texture for the ground plane, and after that, we'll add some additional lights to the scene.

At the end of these changes, our maze will look something like the following screenshot:

Adding textures and improving the lighting

We will start by setting up the texture for the ground plane.

Adding a repeating texture

To create a nice wooden texture, as you can see in the previous screenshot, you only have to change the material you use for the ground plane. The changed ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required