The GLKEffectPropertyMaterial class defines properties used to configure the characteristics of the surface being lit. The material properties for an effect interact with light properties on the same effect to determine how that surface is lit within the scene. The behavior of this class matches the material properties and lighting calculations defined in the OpenGL ES 1.1 specification.


Material Properties

var ambientColor: GLKVector4

The ambient color of the material.

var diffuseColor: GLKVector4

The diffuse color of the material.

var emissiveColor: GLKVector4

The emissive color of the material.

var shininess: GLfloat

The shininess of the material, used when calculating specular lighting effects.

var specularColor: GLKVector4

The specular color of the material.


Inherits From