Commit Graph

6 Commits

Author SHA1 Message Date
Yun Hsiao Wu 21e4e2e0c8 update effects (#10145) 2022-02-22 16:19:15 +08:00
jk20012001 0c19b9a883 fix define syntax error (#9870)
* fix define syntax error

* fix toon shader syntax error
2021-12-24 17:36:47 +08:00
jk20012001 eb883997a1 Fix #10538: Android+WebGL PS struct variables has mediump precision (#9863)
* Fix #10538: Android+WebGL PS struct variables has mediump precision

* update compiled shaders

* review modification

* update compiled shaders
2021-12-24 11:01:54 +08:00
jk20012001 a6dfddc780 Fix spotlight shadow formerge (#9177)
* 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>
2021-08-16 14:50:41 +08:00
Yun Hsiao Wu f45ea7928e fix shadow map generation (#7141) 2020-08-14 23:09:51 +08:00
SijieWang fbb6c52314 Move internal assets to the engine (#7093) 2020-08-06 22:09:24 +08:00