GLKEffectPropertyMaterial Class Reference

Inherits from
Conforms to
Framework
/System/Library/Frameworks/GLKit.framework
Availability
Available in OS X v10.8 and later.
Declared in
GLKEffectPropertyMaterial.h

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.

Tasks

Material Properties

Properties

ambientColor

The ambient color of the material.

@property(nonatomic, assign) GLKVector4 ambientColor
Availability
  • Available in OS X v10.8 and later.
Declared In
GLKEffectPropertyMaterial.h

diffuseColor

The diffuse color of the material.

@property(nonatomic, assign) GLKVector4 diffuseColor
Availability
  • Available in OS X v10.8 and later.
Declared In
GLKEffectPropertyMaterial.h

emissiveColor

The emissive color of the material.

@property(nonatomic, assign) GLKVector4 emissiveColor
Availability
  • Available in OS X v10.8 and later.
Declared In
GLKEffectPropertyMaterial.h

shininess

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

@property(nonatomic, assign) GLfloat shininess
Availability
  • Available in OS X v10.8 and later.
Declared In
GLKEffectPropertyMaterial.h

specularColor

The specular color of the material.

@property(nonatomic, assign) GLKVector4 specularColor
Availability
  • Available in OS X v10.8 and later.
Declared In
GLKEffectPropertyMaterial.h