Properties

CC3BumpMapTextureUnit Class Reference

A texture unit configured for DOT3 bump-mapping. More...

#import <CC3TextureUnit.h>

Inheritance diagram for CC3BumpMapTextureUnit:
Inheritance graph
[legend]
Collaboration diagram for CC3BumpMapTextureUnit:
Collaboration graph
[legend]

List of all members.

Properties

BOOL isBumpMap

Detailed Description

A texture unit configured for DOT3 bump-mapping.

It will combine the per-pixel normal vectors found in the texture with the constantColor property to derive per-pixel luminosity.

Typically, the value of the constantColor property is not set directly, but is established automatically by setting the lightDirection property to indicate the direction of the light source, in tanget-space coordinates. See the notes of the lightDirection property for more information about establishing the direction of the light source.

This implementation combines the texture RGB components (rdbSource0) with the value of constantColor (as rgbSource1), using a DOT3 combining function.

When using bump-mapping, you should associate this texture unit with the first texture of a material to establish per-pixel luminosity, and then add any additional textures (ie- the visible texture) on the material so they will be combined with the luminosity output.


Property Documentation

- (BOOL) isBumpMap [read, assign]

Returns whether this texture unit is configured as a bump-map.

This implementation always returns YES.

Implements CC3TextureUnit.


The documentation for this class was generated from the following file: