Moment Shadow Mapping
2019-10-08
Moment Shadow Mapping(MSM)
Blur shadow depth buffer and get a smooth shadow. Use computer shader to do the blur process.
General shadow mapping.Moment Shadow Mapping.
PCF.
Shwo blured shadow depth in scene.
Computer Shader result:
Before blur process.After blur process.
Compare PCF, MSM:
PCF also can get a smooth shadow, but without a nice transition from dark to bright.
MSM will cost more time on my computer. (PCF with 120 fps, MSM with 90 fps)