44 inline float get_radius()
const;
47 inline void set_fov(
float fov);
48 inline float get_fov()
const;
49 MAKE_PROPERTY(fov, get_fov, set_fov);
51 inline void set_direction(LVecBase3 direction);
52 inline void set_direction(
float dx,
float dy,
float dz);
53 inline const LVecBase3& get_direction()
const;
54 inline void look_at(LVecBase3 point);
55 inline void look_at(
float x,
float y,
float z);
56 MAKE_PROPERTY(direction, get_direction, set_direction);
69 #include "rpSpotLight.I" 71 #endif // RPSPOTLIGHT_H RPSpotLight()
Creates a new spot light.
set_radius
RenderPipeline.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual void write_to_command(GPUCommand &cmd)
Writes the light to a GPUCommand.
Class for storing data to be transferred to the GPU.
virtual void update_shadow_sources()
Updates the shadow sources.
virtual void init_shadow_sources()
Inits the shadow sources of the light.