A light originating from a single point in space, and shining in all directions.
PointLight(std::string const &name)¶
Do not call the copy constructor directly; instead, use make_copy() or copy_subgraph() to make a copy of a node.
Clears a custom specular color setting, meaning that the specular color will now come from the color.
Returns the maximum distance at which the light has any effect, as previously specified by
LPoint3 const &
Returns the point in space at which the light is located. This is local to the coordinate space in which the light is assigned, and is usually 0.
set_attenuation(LVecBase3 const &attenuation)¶
Sets the terms of the attenuation equation for the light. These are, in order, the constant, linear, and quadratic terms based on the distance from the point to the vertex.
Sets the radius of the light’s sphere of influence. Beyond this distance, the light may be attenuated to zero, if this is supported by the shader.
set_point(LPoint3 const &point)¶
Sets the point in space at which the light is located. Usually 0.