Skip to content

textmode.js / Textmodifier / perspective

Method: perspective()

ts
perspective(
   fov?, 
   near?, 
   far?): void;

Enable perspective projection and optionally set projection parameters.

The default perspective is tuned to match textmode.js legacy depth behavior.

Parameters

ParameterTypeDescription
fov?numberVertical field-of-view in degrees.
near?numberNear clipping plane distance; must be greater than 0.
far?numberFar clipping plane distance; must be greater than near.

Returns

void

Example