Skip to content

ReadView beta ​

Interface of @v12-engine/render

ts
export interface ReadView

The view as what reads the shadows is measured against it

Members ​

axis ​

ts
readonly axis: Float64Array;

The view's axis and offset: a point's depth along the view is axis · p + w

corners ​

ts
readonly corners: Float64Array;

The eight corners: near ones first (around), then the far ones

planes ​

ts
readonly planes: Float64Array;

Six planes, four numbers each (normal and d), a point inside where each n · p + d is 0 or more: near, far, the sides