35 inline float RPSpotLight::get_radius()
const {
40 inline void RPSpotLight::set_fov(
float fov) {
46 inline float RPSpotLight::get_fov()
const {
50 inline void RPSpotLight::set_direction(LVecBase3 direction) {
51 _direction = direction;
52 _direction.normalize();
57 inline void RPSpotLight::set_direction(
float dx,
float dy,
float dz) {
58 _direction.set(dx, dy, dz);
59 _direction.normalize();
64 inline const LVecBase3& RPSpotLight::get_direction()
const {
68 inline void RPSpotLight::look_at(LVecBase3 point) {
69 set_direction(point - _position);
72 inline void RPSpotLight::look_at(
float x,
float y,
float z) {
73 set_direction(LVecBase3(x, y, z) - _position);
void invalidate_shadows()
Invalidates the shadows.
set_radius
RenderPipeline.
void set_needs_update(bool flag)
Sets whether the light needs an update.