mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-20 23:52:40 +08:00
a6dfddc780
* fix spotlight shadow matrix, lineardepth, selfbias error (#8483) * Spotlight shadows: Added depthbias in viewspace units * Remove now unnecessary UBO constants * Add support for directional lights * fix spotlight shadow matrix, lineardepth, selfbias error (#8483) * Fix Spotlight light leaking in backface and compiling error * fix dirlightview matrix error * more accuracy for spotlight shadow bias * Fix face normal bias * Fix DirLight Soft/Soft2X * improve performance for ShadowUBO divid op * remove spotshadow linear mode(can't work with new shadow bias), fix spotshadow linear mode * fix spot shadow linear mode * directional light packing mode and disable linear mode * compiled effects Co-authored-by: Jamie Anthony Morris <Jamie.Morris@cocos.com>