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

PCF #83

Closed
Delt06 opened this issue May 22, 2023 · 1 comment
Closed

PCF #83

Delt06 opened this issue May 22, 2023 · 1 comment
Labels
Lighting/Shadows Lighting, shadows, GI, etc.
Milestone

Comments

@Delt06
Copy link
Owner

Delt06 commented May 22, 2023

Implement basic PCF.
Compare performance with VSM. Try checking if VSM can yield the same results with a lower resolution.

@Delt06 Delt06 added the Lighting/Shadows Lighting, shadows, GI, etc. label May 22, 2023
@Delt06 Delt06 modified the milestones: Wishlist, v0.5.0 May 22, 2023
@Delt06
Copy link
Owner Author

Delt06 commented May 23, 2023

4 tap PCF's performance impact is almost negligible, so it comes down to the difference in shadow map rendering.

Rendering time (in millions of clock cycles)
VSM (1024x1024): 1.721
PCF (1024x1024): 0.431
PCF (2048x2048): 0.648.

Even with higher resolution, PCF is much faster than VSM. They, however, yield completely different visual results. Shadows with PCF are more detailed, yet they have aliasing even with a larger atlas size. VSM can remove aliasing even with the smallest atlas sizes, but it does not capture small details. Therefore, it is primarily a stylistic choice rather than based on performance.

@Delt06 Delt06 closed this as completed in 2b2addc May 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Lighting/Shadows Lighting, shadows, GI, etc.
Projects
None yet
Development

No branches or pull requests

1 participant