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

改进软阴影效果 #3

Open
xiaoiver opened this issue Apr 21, 2019 · 0 comments
Open

改进软阴影效果 #3

xiaoiver opened this issue Apr 21, 2019 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@xiaoiver
Copy link
Owner

目前使用 PCF 实现软阴影,但是无法应用 pre-filtering,性能开销较大。
参考论文 http://www.punkuser.net/vsm/vsm_paper.pdf 的实现,充分利用 GPU 的线性插值:

  1. 首先渲染到纹理,保存深度和深度平方
  2. 对 shadow map 进行高斯模糊,并生成 mipmap
  3. 使用切比雪夫不等式估算 pMax

但 VSM 的问题是存在 light bleeding 现象,需要根据场景手动调整参数。

@xiaoiver xiaoiver self-assigned this Apr 21, 2019
@xiaoiver xiaoiver added the enhancement New feature or request label Apr 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant