WorldToScreen

This util should only be called from main thread

Functions

Link copied to clipboard
fun calculateMouseRay(posOnScreen: Vec2, cameraPos: Vec3 = this.cachedCameraPos): Line
Link copied to clipboard
fun calculateScreenPos(pos: Vec3, cameraPos: Vec3 = this.cachedCameraPos): Vec3f?
Link copied to clipboard
fun calculateScreenRect(box: AABB, cameraPos: Vec3 = this.cachedCameraPos): Rect?
Link copied to clipboard
fun setMatrices(projectionMatrix: Matrix4fc, modelViewMatrix: Matrix4fc, cameraPos: Vec3)