Construct a CachedContainer.
Graphics in which token radial and vision occlusion shapes are drawn.
Should our Container also be displayed on screen, in addition to being drawn to the cached RenderTexture?
Clear the occlusion mask.
Update the state of occlusion, rendering a new occlusion mask and updating the occluded flag on all Tiles.
Create a render texture, provide a render method and an optional clear color.
Optional parameters.
A reference to the created render texture.
Remove a previously created render texture.
The render texture to remove.
Custom rendering for secondary render textures
The active canvas renderer.
Bind a render texture to this renderer. Must be called after bindPrimaryBuffer and before bindInitialBuffer.
The active canvas renderer.
The texture to bind.
Initialize the depth mask with the roofs container and token graphics.
Draw occlusion shapes to the Tile occlusion mask. Radial occlusion draws to the green channel with varying intensity from [0.2, 1] based on elevation. Vision occlusion draws to the blue channel with varying intensity from [0.2, 1] based on elevation.
An array of currently controlled or observed tokens
Update the current occlusion status of all Tile objects.
The set of currently controlled Token objects
Resize a render texture passed as a parameter with the renderer.
The active canvas renderer.
The render texture to resize.
A PIXI.Sprite or SpriteMesh which is bound to this CachedContainer. The RenderTexture from this Container is associated with the Sprite which is automatically rendered.
A PIXI.Sprite or SpriteMesh which is bound to this CachedContainer. The RenderTexture from this Container is associated with the Sprite which is automatically rendered.
The primary render texture bound to this cached container.
The occlusion mask which contains radial occlusion and vision occlusion from tokens.