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

Support for DEPTH16 texture format and its used for PCF shadow maps #7142

Merged
merged 1 commit into from
Nov 27, 2024

Conversation

mvaligursky
Copy link
Contributor

@mvaligursky mvaligursky commented Nov 26, 2024

Fixes #5355

  • adds support for PIXELFORMAT_DEPTH16 pixel format (16bit version of PIXELFORMAT_DEPTH)
  • adds new PCF shadow types using this 16bit format: SHADOW_PCF1_FLOAT16, SHADOW_PCF3_FLOAT16, SHADOW_PCF5_FLOAT16 - these work on all light types, both clustered and non-clustered

in a separate PR, existing SHADOW_*** constants will be renamed to be more unified with the new constants.

@mvaligursky mvaligursky merged commit d4df9b6 into main Nov 27, 2024
8 checks passed
@mvaligursky mvaligursky deleted the mv-shadow16 branch November 27, 2024 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: graphics Graphics related issue enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement support for 16bit depth buffers shadow maps
2 participants