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

Adds support for Compatility renderer #37

Conversation

pew-jfrohlander
Copy link
Contributor

The assets works overall, but grass displacement does not work properly due to the displacement render texture utilizing the depth texture, and the depth calculations assumes Vulkan depth range which differs from OpenGL.

This PR adds an additional shader global, which is updated in singleton.gd._ready(), setting the value to 0 or 1 based on the renderer used. distance.gdshader uses this value to set the appropriate vec3 to use when calculating depth.

This allows for using the asset with either renderer devices without manually modifying the shader.

@IcterusGames IcterusGames merged commit c4be4de into IcterusGames:main Feb 18, 2025
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

Successfully merging this pull request may close these issues.

2 participants