Mac Developer Library

Developer

GLKit Framework Reference GLKEffectPropertyMaterial Class Reference

Options
Deployment Target:

On This Page
Language:

GLKEffectPropertyMaterial

Inheritance


Conforms To


Import Statement


Swift

import GLKit

Objective-C

@import GLKit;

Availability


Available in OS X v10.8 and later.

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.

  • The ambient color of the material.

    Declaration

    Swift

    var ambientColor: GLKVector4

    Objective-C

    @property(nonatomic, assign) GLKVector4 ambientColor

    Import Statement

    Objective-C

    @import GLKit;

    Swift

    import GLKit

    Availability

    Available in OS X v10.8 and later.

  • The diffuse color of the material.

    Declaration

    Swift

    var diffuseColor: GLKVector4

    Objective-C

    @property(nonatomic, assign) GLKVector4 diffuseColor

    Import Statement

    Objective-C

    @import GLKit;

    Swift

    import GLKit

    Availability

    Available in OS X v10.8 and later.

  • The emissive color of the material.

    Declaration

    Swift

    var emissiveColor: GLKVector4

    Objective-C

    @property(nonatomic, assign) GLKVector4 emissiveColor

    Import Statement

    Objective-C

    @import GLKit;

    Swift

    import GLKit

    Availability

    Available in OS X v10.8 and later.

  • shininess shininess Property

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

    Declaration

    Swift

    var shininess: GLfloat

    Objective-C

    @property(nonatomic, assign) GLfloat shininess

    Import Statement

    Objective-C

    @import GLKit;

    Swift

    import GLKit

    Availability

    Available in OS X v10.8 and later.

  • The specular color of the material.

    Declaration

    Swift

    var specularColor: GLKVector4

    Objective-C

    @property(nonatomic, assign) GLKVector4 specularColor

    Import Statement

    Objective-C

    @import GLKit;

    Swift

    import GLKit

    Availability

    Available in OS X v10.8 and later.