Instance Property

color

The color value for the material property.

Declaration

@property(nonatomic) CGColorRef color;

Discussion

A material property with a color value uses a uniform color for all pixels rendered using the material. This option is useful for base colors of solid-colored objects, and also for material semantics where variation across the surface of the material is unnecessary. To vary colors across a surface, use a texture image instead.

See Also

Working with a Material Property’s Value

stringValue

The string value for the material.

URLValue

The URL value for the material property—typically, the URL to a texture image.

textureSamplerValue

A texture sampler object that provides the texture image value for the material property.

floatValue

The scalar floating-point value for the material property.

float2Value

The 2-component floating-point vector value for the material property.

float3Value

The 3-component floating-point vector value for the material property.

float4Value

The 4-component floating-point vector value for the material property.

matrix4x4

The 4 x 4 floating-point matrix value for the material property.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software