API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
interfaceNormalSurfaceDrawable
A drawable whose own texture, frame and layout box say where its normals belong on screen. 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 quad, a region of a texture and a placement. The texture is read for its alpha only. The quad a drawable occupies is a rectangle and its silhouette rarely fills one, so the alpha is what says where a surface was actually described.
import { NormalSurfaceDrawable } from '@codexo/exojs-lighting'A drawable whose own texture, frame and layout box say where its normals belong on screen. 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 quad, a region of a texture and a placement.
The texture is read for its alpha only. The quad a drawable occupies is a rectangle and its silhouette rarely fills one, so the alpha is what says where a surface was actually described.
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 (… | nullvisible: boolean