Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Potentially misleading documentation for Camera3D.get_camera_projection() #10726

Open
OoJJBoO opened this issue Feb 28, 2025 · 0 comments
Open

Comments

@OoJJBoO
Copy link

OoJJBoO commented Feb 28, 2025

Your Godot version:
4.3

Issue description:
The documentation for Camera3D.get_camera_projection() states that the returned projection is the one "this camera uses to render to its associated viewport". This is not entirely accurate, though, since the returned projection does not include the depth correction applied in the Vulkan backend. This behavior might confuse some users when trying to use said projection, as the produced depth-values will be in [-1, 1] instead of the otherwise expected [1, 0] range.

I already added a comment on the documentation page noting this issue, but would propose to include a similar note into the documentation to make this more clear.

URL to the documentation page:

https://docs.godotengine.org/en/4.3/classes/class_camera3d.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant