原文:How to calculate average value by masked value/texture on GPU?
Background (if helpful) I m writing a GPU-Based Real-Time Preview Lightmapper with NVIDIA RTX-Cards on Windows. For any scene ready to be baked, I write: lighting data in screen space to a 1920x1080 ...