14 #ifndef POLYLIGHTEFFECT_H 15 #define POLYLIGHTEFFECT_H 50 static CPT(
RenderEffect) make(PN_stdfloat weight, ContribType contrib,
const LPoint3 &effect_center);
51 static CPT(
RenderEffect) make(PN_stdfloat weight, ContribType contrib,
const LPoint3 &effect_center,
const LightGroup &lights);
56 CPT(
RenderEffect) set_effect_center(
const LPoint3 &ec)
const;
57 INLINE PN_stdfloat get_weight()
const;
58 INLINE ContribType get_contrib()
const;
59 INLINE LPoint3 get_effect_center()
const;
61 bool has_light(
const NodePath &light)
const;
64 virtual bool has_cull_callback()
const;
73 virtual void output(std::ostream &out)
const;
76 ContribType _contribution_type;
79 LPoint3 _effect_center;
82 virtual int compare_to_impl(
const RenderEffect *other)
const;
88 static void init_type() {
89 RenderEffect::init_type();
91 RenderEffect::get_class_type());
94 return get_class_type();
96 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
104 std::ostream &operator << (std::ostream &out, PolylightEffect::ContribType ct);
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is the base class for a number of render attributes (other than transform) that may be set on sc...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This collects together the pieces of data that are accumulated for each node while walking the scene ...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is the base class for a number of special render effects that may be set on scene graph nodes to...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A PolylightEffect can be used on a node to define a LightGroup for that node.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This represents a unique collection of RenderAttrib objects that correspond to a particular renderabl...
TypeHandle is the identifier used to differentiate C++ class types.
This object holds the camera position, etc., and other general setup information for rendering a part...
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...
This object performs a depth-first traversal of the scene graph, with optional view-frustum culling,...