commonMain.phraseViewToProjectionDepth_shader.kt Maven / Gradle / Ivy
The newest version!
package org.openrndr.shaderphrases.phrases
const val phraseViewToProjectionDepth = """float viewToProjectionDepth(float viewDepth, mat4 projection) {
float z = viewDepth * projection[2].z + projection[3].z;
float w = viewDepth * projection[2].w + projection[3].w;
return z / w;
}"""
© 2015 - 2025 Weber Informatics LLC | Privacy Policy