O'Reilly logo

Learn ARCore - Fundamentals of Google ARCore by Micheal Lanham

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

Materials, shaders, and textures

Okay, now we have seen how Unity renders a scene and the various draw modes available. However, we still need to go over how an object is colored or textured. In Unity, we typically use materials, shaders, and textures to render 3D objects. A material is essentially an encapsulation of a shader, its dependent textures, and other settings. Let's see what AndyMaterial looks like in Unity by following the given steps:

  1. Open the Assets/GoogleARCore/HelloARExample/Materials/Andy folder in the Project window and select AndyMaterial. Look at the Inspector window and note the name of the Shader (ARCoreDiffuseWithLightEstimation) at the top. The current Shader uses a simple lighting model and has been optimized for ...

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