turanszkij / WickedEngine

3D engine with modern graphics
https://wickedengine.net
MIT License
5.45k stars 568 forks source link

Bug in CloudShadowFilter? #823

Closed IvayloCC closed 2 months ago

IvayloCC commented 2 months ago

Hi,

wiRenderer.cpp-> CloudShadowFilter() is binding TEXTYPE_2D_VOLUMETRICCLOUDS_SHADOW both as SRV and UAV. AFAIK, this is valid use case, but the shader should read and write to the same index. However, volumetricCloud_shadow_filterCS is doing a gather. Isn't that a bug?

turanszkij commented 2 months ago

Nice find, fixed.