O'Reilly logo

Learning Swift™ Programming by Jacob Schatz

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

Material Properties

When you open the Materials tab, you will see that it has lots of information on the different material properties. Let’s talk about each one:

Diffuse: This is the closest you can get to saying “the color of the object.” More specifically it is the color the object reveals equally from all directions, from each point on the material’s surface. A diffuse map, meaning an image, can be applied. This image will show directly on the surface of the object. Often, if it is a complex image, it must be mapped properly before being brought into Xcode.

Ambient: This property makes it look as if light is hitting your object from all directions equally. For the ambient color of a material to be visible, you must have at least one light ...

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