API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
interfaceAlphaOccluderDrawable
@codexo/exojs-lighting / lighting / stable
A drawable whose own texture, frame and layout box describe where its silhouette belongs. Core's `Sprite` - and therefore `AnimatedSprite` and `Video`, which extend it - satisfies it as it stands, which is what lets one argument stand in for a texture, a region of it and a placement.
2
props
2
methods
0
events
Import
import { AlphaOccluderDrawable } from '@codexo/exojs-lighting'A drawable whose own texture, frame and layout box describe where its silhouette belongs. Core's `Sprite` - and therefore `AnimatedSprite` and `Video`, which extend it - satisfies it as it stands, which is what lets one argument stand in for a texture, a region of it and a placement.
Methods2
The drawable's own local box, which the traced frame is mapped onto.
Properties2
texture: RenderTextureAn off-screen render target that can also be sampled as a texture. Combines RenderTarget (framebuffer attachment) with the sampler parameters of a Texture (sca… | TextureA static GPU texture sourced from an image, canvas, or video element. Holds the pixel source, its sampling state (ScaleModes, WrapModes) and its upload state (… | nullThe region of the texture this drawable shows, which is what gets traced.
Source