Constructs a new depth buffer.
The camera data that generated this depth buffer.
The attributes of the depth buffer image.
A 16-bit typed array of depth values.
ReadonlycameraThe camera data that generated this depth buffer.
ReadonlyimageThe attributes of the depth buffer image.
ReadonlypixelsA 16-bit typed array of depth values.
StaticMAX_A constant that specifies the maximum depth value that can be represented by a depth buffer.
Returns the depth of the closest geometry at the point in the viewport (2D) corresponding to the given world point (3D).
depth of the closest geometry at the corresponding point in the viewport.
Computes the depth from a 2D point within the coordinate space of the depth buffer.
For perspective cameras, the returned depth is a value that's between the near and far planes of the camera.
For orthographic cameras, the returned depth is a value that's between 0 and the distance between the near and far planes of the camera.
The depth at the point.
Computes the maximum depth of visible geometry within the coordinate space of the depth buffer.
For perspective cameras, the maximum depth is the magnitude of the far plane of the camera.
For orthographic cameras, the maximum depth is the distance between the near and far planes of the camera.
The maximum depth of visible geometry.
Computes a depth from a 2D point within the coordinate space of the frame.
The returned depth is a normalized value ([0, 1]) between the near and
far plane.
A depth between 0 and 1.
StaticfromCreates a DepthBuffer from a decoded PNG.
An object containing the width, height and raw PNG data.
The camera that generated the depth buffer image.
The attributes of the depth buffer image.
A depth buffer.
A
DepthBufferrepresents the depth information for a rendered frame. This depth information can be used for checking if a world point is occluded by geometry or getting a world position from a 2D viewport point without having to do a server call.A depth buffer is represented by a 16-bit typed array, where each value is a relative distance between the camera's near and far planes.