API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
interfacePolygonOccluderOptions
@codexo/exojs-lighting / lighting / stable
Tuning for PolygonOccluder.
2
props
0
methods
0
events
Import
import { PolygonOccluderOptions } from '@codexo/exojs-lighting'Tuning for PolygonOccluder.
Properties2
closed?: booleanWhether the last point joins the first. false leaves an open polyline, which is what a wall, a fence or a one-sided ledge is. Defaults to true.
Node whose world transform places the outline, making the points local to it. Without one the points are world space. Local means the node's OWN space, scale included. A drawable sized through width / height carries that size as a scale, so its local space is its texture's pixels and not the size it appears at - points written in the size you see are then multiplied by it a second time, and the outline comes out many times too large. Where the shape you want IS the drawable's, AlphaOccluder takes it from the drawable itself and this cannot happen.
Source