MultitexReducer

Inheritance:

Methods of MultitexReducer:

clear
void MultitexReducer::clear(void);

Undocumented function.

flatten
void MultitexReducer::flatten(GraphicsOutput *window);

Undocumented function.

scan
void MultitexReducer::scan(NodePath const &node);

Filename: multitexReducer.I Created by: drose (30Nov04)
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University. All rights reserved.
All use of this software is subject to the terms of the revised BSD license. You should have received a copy of this license along with this source code in a file named "LICENSE."
Description: Starts scanning the hierarchy beginning at the indicated node. Any GeomNodes discovered in the hierarchy with multitexture will be added to internal structures in the MultitexReducer so that a future call to flatten() will operate on all of these at once.
This version of this method does not accumulate state from the parents of the indicated node; thus, only multitexture effects that have been applied at node and below will be considered.
The second parameter represents the NodePath from which to accumulate the state that is considered for the multitexture. Pass an empty NodePath to accumulate all the state from the root of the graph, or you may specify some other node here in order to not consider nodes above that as contributing to the state to be flattened. This is particularly useful if you have some texture stage which is applied globally to a scene (for instance, a caustics effect), which you don't want to be considered for flattening by the MultitexReducer.

setAllowTexMat
void MultitexReducer::set_allow_tex_mat(bool allow_tex_mat);

Undocumented function.

setTarget
void MultitexReducer::set_target(TextureStage *stage);

Undocumented function.

setUseGeom
void MultitexReducer::set_use_geom(bool use_geom);

Undocumented function.