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

Fix Frustum view of the 2D camera #8

Open
Gallasko opened this issue Oct 14, 2024 · 0 comments
Open

Fix Frustum view of the 2D camera #8

Gallasko opened this issue Oct 14, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Gallasko
Copy link
Owner

The 2D camera can only see between a z of 0 and 1
The current workaround is to divide the z value by 100 in shader to get a range of 0 to 100 and have proper draw order
aWorldPos.z / 100.0f

THIS IS NOT THE CORRECT WAY TO DO IT !
Need to set up correctly the frustum in the renderer so it can be changed in runtime !

@Gallasko Gallasko added the bug Something isn't working label Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant