LightLensNode

from panda3d.core import LightLensNode
class LightLensNode

Bases: Light, Camera

A derivative of Light and of Camera. The name might be misleading: it does not directly derive from LensNode, but through the Camera class. The Camera serves no purpose unless shadows are enabled.

Inheritance diagram

Inheritance diagram of LightLensNode

__init__(*args, **kwargs)
getClassType()

C++ Interface: get_class_type()

getShadowBuffer()

C++ Interface: get_shadow_buffer(const LightLensNode self, GraphicsStateGuardianBase gsg)

/**
  • Returns the buffer that has been constructed for a given GSG, or NULL if no

  • such buffer has (yet) been constructed. This should be used for debugging

  • only, you will not need to call this normally.

*/

getShadowBufferSize()

C++ Interface: get_shadow_buffer_size(LightLensNode self)

/**
  • Returns the size of the shadow buffer to be created for this light source.

*/

getShadowBufferSort()

C++ Interface: get_shadow_buffer_sort(LightLensNode self)

/**
  • Returns the sort of the shadow buffer to be created for this light source.

*/

get_class_type()

C++ Interface: get_class_type()

get_shadow_buffer()

C++ Interface: get_shadow_buffer(const LightLensNode self, GraphicsStateGuardianBase gsg)

/**
  • Returns the buffer that has been constructed for a given GSG, or NULL if no

  • such buffer has (yet) been constructed. This should be used for debugging

  • only, you will not need to call this normally.

*/

get_shadow_buffer_size()

C++ Interface: get_shadow_buffer_size(LightLensNode self)

/**
  • Returns the size of the shadow buffer to be created for this light source.

*/

get_shadow_buffer_sort()

C++ Interface: get_shadow_buffer_sort(LightLensNode self)

/**
  • Returns the sort of the shadow buffer to be created for this light source.

*/

hasSpecularColor()

C++ Interface: has_specular_color(LightLensNode self)

/**
  • Returns true if this light defines a specular color, false if the specular

  • color is derived automatically from the light color.

*/

has_specular_color()

C++ Interface: has_specular_color(LightLensNode self)

/**
  • Returns true if this light defines a specular color, false if the specular

  • color is derived automatically from the light color.

*/

isShadowCaster()

C++ Interface: is_shadow_caster(LightLensNode self)

/**
  • Returns whether this light is configured to cast shadows or not.

*/

is_shadow_caster()

C++ Interface: is_shadow_caster(LightLensNode self)

/**
  • Returns whether this light is configured to cast shadows or not.

*/

output()

C++ Interface: output(LightLensNode self, ostream out)

// We have to explicitly publish these because they resolve the multiple // inheritance.

/**

*/

setShadowBufferSize()

C++ Interface: set_shadow_buffer_size(const LightLensNode self, const LVecBase2i size)

/**
  • Sets the size of the shadow buffer to be created for this light source.

*/

setShadowBufferSort()

C++ Interface: set_shadow_buffer_sort(const LightLensNode self, int sort)

/**
  • Sets the sort of the shadow buffer to be created for this light source.

*/

setShadowCaster()

C++ Interface: set_shadow_caster(const LightLensNode self, bool caster) set_shadow_caster(const LightLensNode self, bool caster, int buffer_xsize, int buffer_ysize, int sort)

/**
  • Sets the flag indicating whether this light should cast shadows or not.

  • This is the variant without buffer size, meaning that the current buffer

  • size will be kept (512x512 is the default). Note that enabling shadows will

  • require the shader generator to be enabled on the scene.

*/

/**
  • Sets the flag indicating whether this light should cast shadows or not.

  • The xsize and ysize parameters specify the size of the shadow buffer that

  • will be set up, the sort parameter specifies the sort. Note that enabling

  • shadows will require the shader generator to be enabled on the scene.

*/

set_shadow_buffer_size()

C++ Interface: set_shadow_buffer_size(const LightLensNode self, const LVecBase2i size)

/**
  • Sets the size of the shadow buffer to be created for this light source.

*/

set_shadow_buffer_sort()

C++ Interface: set_shadow_buffer_sort(const LightLensNode self, int sort)

/**
  • Sets the sort of the shadow buffer to be created for this light source.

*/

set_shadow_caster()

C++ Interface: set_shadow_caster(const LightLensNode self, bool caster) set_shadow_caster(const LightLensNode self, bool caster, int buffer_xsize, int buffer_ysize, int sort)

/**
  • Sets the flag indicating whether this light should cast shadows or not.

  • This is the variant without buffer size, meaning that the current buffer

  • size will be kept (512x512 is the default). Note that enabling shadows will

  • require the shader generator to be enabled on the scene.

*/

/**
  • Sets the flag indicating whether this light should cast shadows or not.

  • The xsize and ysize parameters specify the size of the shadow buffer that

  • will be set up, the sort parameter specifies the sort. Note that enabling

  • shadows will require the shader generator to be enabled on the scene.

*/

shadow_buffer_size
shadow_buffer_sort
shadow_caster
upcastToCamera()

C++ Interface: upcast_to_Camera(const LightLensNode self)

upcast from LightLensNode to Camera

upcastToLight()

C++ Interface: upcast_to_Light(const LightLensNode self)

upcast from LightLensNode to Light

upcast_to_Camera()

C++ Interface: upcast_to_Camera(const LightLensNode self)

upcast from LightLensNode to Camera

upcast_to_Light()

C++ Interface: upcast_to_Light(const LightLensNode self)

upcast from LightLensNode to Light

write()

C++ Interface: write(LightLensNode self, ostream out, int indent_level)

/**

*/