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

Shadows should cast onto water surface #4104

Open
past-due opened this issue Oct 24, 2024 · 0 comments
Open

Shadows should cast onto water surface #4104

past-due opened this issue Oct 24, 2024 · 0 comments
Labels

Comments

@past-due
Copy link
Member

At the moment, the cascaded shadow maps are not used for rendering water (i.e. shadows only cast on the terrain floor underneath the water).

The water shaders (terrain_water_high.vert, terrain_water_high.frag) will require modifications to support this.

Notes:

  • WZ will need to pass in various shadow-map related uniforms and the shadowMap texture to the high terrain water shader
  • The shader will need to apply similar logic as terrain_combined_high.frag to use the shadow-related functions in terrain_combined_frag.glsl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants
@past-due and others