Book Image

Three.js Cookbook

By : Jos Dirksen
Book Image

Three.js Cookbook

By: Jos Dirksen

Overview of this book

Table of Contents (15 chapters)
Three.js Cookbook
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 4. Materials and Textures

In this chapter, we'll cover the following recipes:

  • Adding depth to a mesh with a bump map

  • Adding depth to a mesh with a normal map

  • Using HTML canvas as a texture

  • Using HTML video as a texture

  • Creating a mesh with multiple materials

  • Using separate materials for faces

  • Setting up repeating textures

  • Making part of an object transparent

  • Using a cubemap to create reflective materials

  • Using a dynamic cubemap to create reflective materials

  • Using Blender to create custom UV mapping

  • Configuring blend modes

  • Using a shadow map for fixed shadows