ShadowAtlas

from panda3d._rplight import ShadowAtlas
class ShadowAtlas

Bases: DTOOL_SUPER_BASE

This class manages the shadow atlas. It handles finding and reserving space for new shadow maps.

Inheritance diagram

Inheritance diagram of ShadowAtlas

__init__(*args, **kwargs)
coverage
getCoverage()

C++ Interface: get_coverage(ShadowAtlas self)

/**
  • @brief Returns the amount of used tiles in percentage

  • @details This returns in percentage from 0 to 1 how much space of the atlas

  • is used right now. A value of 1 means the atlas is completely full, whereas

  • a value of 0 means the atlas is completely free.

  • @return Atlas usage in percentage

*/

getNumUsedTiles()

C++ Interface: get_num_used_tiles(ShadowAtlas self)

/**
  • @brief Returns the amount of used tiles

  • @details Returns the amount of used tiles in the atlas

  • @return Amount of used tiles

*/

get_coverage()

C++ Interface: get_coverage(ShadowAtlas self)

/**
  • @brief Returns the amount of used tiles in percentage

  • @details This returns in percentage from 0 to 1 how much space of the atlas

  • is used right now. A value of 1 means the atlas is completely full, whereas

  • a value of 0 means the atlas is completely free.

  • @return Atlas usage in percentage

*/

get_num_used_tiles()

C++ Interface: get_num_used_tiles(ShadowAtlas self)

/**
  • @brief Returns the amount of used tiles

  • @details Returns the amount of used tiles in the atlas

  • @return Amount of used tiles

*/

num_used_tiles