Chapter 4. Using Materials to Customize 3D Objects Appearance

The objects that we call materials are essential in 3D rendering. They are used to render objects on the screen and how they are rendered. This means that the materials are used to apply textures and transformations such as waves, for example, manage transparency and more. In other words, materials are interfaces that are used to easily customize the 3D object's appearance.

The following is an example with Babylon.js:

myMesh.material = new BABYLON.StandardMaterial("material", scene); 
// Done! Now customize everything you want here 
myMesh.material.diffuseTexture = diffuseTexture; 
myMesh.material.transparency = 0.5; 
// Etc. 

We will be covering the following topics in this chapter:

  • Discussing ...

Get Babylon.js Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.