Class

GLKEffectPropertyMaterial

Surface appearance properties for use in GLKit rendering effects.

Overview

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.

Topics

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.

Relationships

Inherits From

See Also

Rendering Effect Parameters

class GLKEffectProperty

The abstract superclass for configuration information used in GLKit rendering effects.

class GLKEffectPropertyFog

Fog drawing information for use in GLKit rendering effects.

class GLKEffectPropertyLight

Lighting information for use in GLKit rendering effects.

class GLKEffectPropertyTexture

Texture drawing parameters for use in GLKit rendering effects.

class GLKEffectPropertyTransform

Coordinate transform information for use in GLKit rendering effects.