PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University. More...
#include "polylightEffect.h"
#include "polylightNode.h"
#include "config_pgraph.h"
#include "nodePath.h"
#include "pmap.h"
#include "colorScaleAttrib.h"
#include "cullTraverserData.h"
#include "cullTraverser.h"
#include <math.h>
Go to the source code of this file.
Functions | |
CPT (RenderEffect) PolylightEffect | |
Constructs a new PolylightEffect object. More... | |
CPT (RenderAttrib) PolylightEffect | |
Gets the node's position and based on distance from lights in the lightgroup calculates the color to be modulated in. More... | |
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."
Definition in file polylightEffect.cxx.
CPT | ( | RenderEffect | ) |
Constructs a new PolylightEffect object.
Definition at line 32 of file polylightEffect.cxx.
CPT | ( | RenderAttrib | ) |
Gets the node's position and based on distance from lights in the lightgroup calculates the color to be modulated in.
If the avatar is in the range of multiple lights, then determine, which light it is closer to, and get the weight of the scene_color in respect to that light's proximity. Intended to be overridden by derived PolylightEffect types to return a unique number indicating whether this PolylightEffect is equivalent to the other one.
This should return 0 if the two PolylightEffect objects are equivalent, a number less than zero if this one should be sorted before the other one, and a number greater than zero otherwise.
This will only be called with two PolylightEffect objects whose get_type() functions return the same. Add a PolylightNode object to this effect and return a new effect Remove a light from this effect. Return the new updated effect Set weight and return a new effect... the reason this couldnt be done through make was because that would return a new effect without the lightgroup which is static and cant be accessed Here, we just pass that to the make Set Contrib Type and return a new effect... the reason this couldnt be done through make was because that would return a new effect without the lightgroup which is static and cant be accessed Here, we just pass that to the make Set weight and return a new effect... the reason this couldnt be done through make was because that would return a new effect without the lightgroup which is static and cant be accessed Here, we just pass that to the make Returns true if the indicated light is listed in the PolylightEffect, false otherwise.
Definition at line 107 of file polylightEffect.cxx.