API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

I

interfaceNormalSurfaceDrawable

@codexo/exojs-lighting / lighting / stable

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.

3
props
2
methods
0
events
Import
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.

Methods2
Properties3
visible: boolean
Whether the drawable is drawn at all. A hidden one describes no surface.
Source