diff --git a/panda/src/pgraphnodes/lightLensNode.I b/panda/src/pgraphnodes/lightLensNode.I index 4fd1138b03..ccdb55ea0a 100644 --- a/panda/src/pgraphnodes/lightLensNode.I +++ b/panda/src/pgraphnodes/lightLensNode.I @@ -36,6 +36,14 @@ get_shadow_buffer_sort() const { return _sb_sort; } +/** + * Sets the sort of the shadow buffer to be created for this light source. + */ +INLINE void LightLensNode:: +set_shadow_buffer_sort(int sort) { + _sb_sort = sort; +} + /** * Returns the size of the shadow buffer to be created for this light source. */ diff --git a/panda/src/pgraphnodes/lightLensNode.h b/panda/src/pgraphnodes/lightLensNode.h index f045c539b3..1d6b7720c8 100644 --- a/panda/src/pgraphnodes/lightLensNode.h +++ b/panda/src/pgraphnodes/lightLensNode.h @@ -42,6 +42,7 @@ class EXPCL_PANDA_PGRAPHNODES LightLensNode : public Light, public Camera { void set_shadow_caster(bool caster, int buffer_xsize, int buffer_ysize, int sort = -10); INLINE int get_shadow_buffer_sort() const; + INLINE void set_shadow_buffer_sort(int sort); INLINE LVecBase2i get_shadow_buffer_size() const; INLINE void set_shadow_buffer_size(const LVecBase2i &size); @@ -50,6 +51,7 @@ class EXPCL_PANDA_PGRAPHNODES LightLensNode : public Light, public Camera { PUBLISHED: MAKE_PROPERTY(shadow_caster, is_shadow_caster); + MAKE_PROPERTY(shadow_buffer_sort, get_shadow_buffer_sort, set_shadow_buffer_sort); MAKE_PROPERTY(shadow_buffer_size, get_shadow_buffer_size, set_shadow_buffer_size); public: