1

##### Lightweight Java Gaming Library / Re: It seems like my rendering is wrong but im not sure why

« Last post by**coolian**on

*September 20, 2020, 16:41:27*»

Read this: https://github.com/JOML-CI/JOML/wiki/Common-Pitfalls#angles-are-always-in-radians

Currently, you are passing 90 radians to Matrix4f.perspective()

made these getters and replaced camera.Zoom with camera.getZoom

i also replaced other things where necessary which is really only this:

Code: [Select]

`front.x = (Math.cos(getYaw()) * Math.cos(getPitch()));`

front.y = Math.sin(getPitch());

front.z = (Math.sin(getYaw()) * Math.cos(getPitch()));

It was an improvement of the white pixels being shown roughly 3 seconds instead of 1

video:https://drive.google.com/file/d/1xMTHa97qqNcODF4NdxA5TgCmpp7jMYSi/view?usp=sharing

so that wasnt the entire solution