Next steps
Now that you can see the basic three.js syntax for materials, you could look at the various three.js samples, and copy some of that code in. Don't just look at the samples on the screen. You will want to also try them in VR. Some game tricks, such as lens reflections or screen space reflections, do not look really good in VR. As always, test, test, and test.
I also changed the color of the button slightly, and we don't have a cursor when we shift into VR mode, so the button press doesn't always work. In the next chapter, I'll show you how to fix this, or you can investigate yourself.
I've also loaded a metal-like reflection texture in the source files, called static_assets/metal_reflect.jpg. You don't have to do the camera rendering ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access