Inherits from CC3Node : CC3Identifiable : NSObject
Declared in CC3EnvironmentNodes.h

Overview

CC3EnvironmentNode is an abstract superclass of a family of node classes that hold a texture that can be used as an environment map by other nodes.

Different subclasses provide specialized types of environment maps, such as light probes and reflection surfaces.

Environment maps require shaders to interpret the contents of the texture, and are therefore not compatible with OpenGL ES 1.1, and instances of CC3EnvironmentNode will have no effect if included in a scene while running under OpenGL ES 1.1.

Properties

texture

The texture that provides the environment map.

@property (nonatomic, retain) CC3Texture *texture

Discussion

Typically, this texture is a cube-map, to provide a map in all six directions.

Declared In

CC3EnvironmentNodes.h

Class Methods

nodeWithName:withTexture:

Allocates and initializes an autoreleased instance with the specified name and environment texture.

+ (id)nodeWithName:(NSString *)name withTexture:(CC3Texture *)texture

Declared In

CC3EnvironmentNodes.h

nodeWithTexture:

Allocates and initializes an autoreleased instance with the specified texture.

+ (id)nodeWithTexture:(CC3Texture *)texture

Discussion

The name of the returned instance will be set to that of the specified texture.

Declared In

CC3EnvironmentNodes.h

Instance Methods

initWithName:withTexture:

Initializes this instance with the specified name and environment texture.

- (id)initWithName:(NSString *)name withTexture:(CC3Texture *)texture

Declared In

CC3EnvironmentNodes.h

initWithTexture:

Initializes this instance with the specified texture.

- (id)initWithTexture:(CC3Texture *)texture

Discussion

The name of this instance will be set to that of the specified texture.

Declared In

CC3EnvironmentNodes.h