28 #include "rpPointLight.h" 61 nassertv(_shadow_sources.size() == 0);
63 for(
size_t i = 0; i < 6; ++i) {
74 LVecBase3 directions[6] = {
84 const float fov = 90.0f + 3.0f;
85 for (
size_t i = 0; i < _shadow_sources.size(); ++i) {
87 _shadow_sources[i]->set_perspective_lens(fov, _near_plane, _radius,
88 _position, directions[i]);
virtual void update_shadow_sources()
Updates the shadow sources.
get_shadow_map_resolution
Returns the shadow map resolution.
void push_float(float v)
Appends a float to the GPUCommand.
virtual void write_to_command(GPUCommand &cmd)
Writes the light to a GPUCommand.
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 init_shadow_sources()
Inits the shadow sources of the light.
RPPointLight()
RenderPipeline.