Skip to content

Function: viewDepthCoefficients() ​

ts
function viewDepthCoefficients(modelView, transform, out?): DepthCoefficients;

Experimental

View-space z of a data point as an affine function of its coordinates: row 2 of the model-view matrix (column-major modelView, three.js Matrix4.elements) composed with the data → world transform.

Parameters ​

ParameterType
modelViewArrayLike<number>
transformReadonly<DataTransform>
outDepthCoefficients

Returns ​

DepthCoefficients

Released under the MIT License.