DirectionalLight

from panda3d.core import DirectionalLight
class DirectionalLight

Bases: LightLensNode

A light shining from infinitely far away in a particular direction, like sunlight.

Inheritance diagram

Inheritance diagram of DirectionalLight

__init__(*args, **kwargs)
clearSpecularColor()

C++ Interface: clear_specular_color(const DirectionalLight self)

/**
  • Clears a custom specular color setting, meaning that the specular color

  • will now come from the color.

*/

clear_specular_color()

C++ Interface: clear_specular_color(const DirectionalLight self)

/**
  • Clears a custom specular color setting, meaning that the specular color

  • will now come from the color.

*/

direction
getClassType()

C++ Interface: get_class_type()

getDirection()

C++ Interface: get_direction(DirectionalLight self)

/**
  • Returns the direction in which the light is aimed. This is local to the

  • coordinate space in which the light is assigned.

*/

getPoint()

C++ Interface: get_point(DirectionalLight self)

/**
  • Returns the point in space at which the light is located. This is local to

  • the coordinate space in which the light is assigned.

  • This actually has no bearing on the visual effect of the light, since the

  • light is rendered as if it were infinitely far away. This is only used to

  • create a visible representation of the light.

*/

get_class_type()

C++ Interface: get_class_type()

get_direction()

C++ Interface: get_direction(DirectionalLight self)

/**
  • Returns the direction in which the light is aimed. This is local to the

  • coordinate space in which the light is assigned.

*/

get_point()

C++ Interface: get_point(DirectionalLight self)

/**
  • Returns the point in space at which the light is located. This is local to

  • the coordinate space in which the light is assigned.

  • This actually has no bearing on the visual effect of the light, since the

  • light is rendered as if it were infinitely far away. This is only used to

  • create a visible representation of the light.

*/

point
setDirection()

C++ Interface: set_direction(const DirectionalLight self, const LVector3f direction)

/**
  • Sets the direction in which the light is aimed.

*/

setPoint()

C++ Interface: set_point(const DirectionalLight self, const LPoint3f point)

/**
  • Sets the point in space at which the light is located.

*/

setSpecularColor()

C++ Interface: set_specular_color(const DirectionalLight self, const LVecBase4f color)

/**
  • Sets the color of specular highlights generated by the light.

*/

set_direction()

C++ Interface: set_direction(const DirectionalLight self, const LVector3f direction)

/**
  • Sets the direction in which the light is aimed.

*/

set_point()

C++ Interface: set_point(const DirectionalLight self, const LPoint3f point)

/**
  • Sets the point in space at which the light is located.

*/

set_specular_color()

C++ Interface: set_specular_color(const DirectionalLight self, const LVecBase4f color)

/**
  • Sets the color of specular highlights generated by the light.

*/

specular_color