engine icon indicating copy to clipboard operation
engine copied to clipboard

Implement cheaper shadow sampling

Open mvaligursky opened this issue 3 years ago • 2 comments

In current implementation, PCF3 is the cheapest available shadow sampling. For mobile, especially older devices, even cheaper filtering could be implemented. PCF2, and even possibly single tap sampling (which is getting used in mobile games) to keep the shadow cost down.

mvaligursky avatar May 25 '21 10:05 mvaligursky

PCF1 is added to clustered lights: https://github.com/playcanvas/engine/pull/3763

  • on webgl1 this is a single sample with point filtering (linear filtering would need 4 samples)
  • on webgl2 this is a single sample with linear depth filtering

mvaligursky avatar Dec 06 '21 14:12 mvaligursky

  • What is left to do is to add PCF1 filtering support to directional lights.

mvaligursky avatar Jun 17 '22 11:06 mvaligursky