Skip to content

DepthRange

final class DepthRange
Package: dev.joid.lib.bridge.render.matrix · Module: core · Source: DepthRange.java

Converts a projection from the OpenGL depth range, -1 to 1, to a clip space whose depth goes from 0 to 1.

A backend whose API expects a depth from 0 to 1, such as Vulkan, converts the projection with it before it writes the matrix into the uniforms of a shader. X and Y stay as they are.

ReturnsSignatureSummary
float[]toZeroToOne(float[] projection) staticReturns a converted copy of a column-major 4×4 matrix, 16 floats; the argument stays unchanged.

float[] toZeroToOne(float[] projection) static

Returns a converted copy of a column-major 4×4 matrix, 16 floats; the argument stays unchanged.


fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses

Report a problem with this page