Yi Shen 9767eb5c72
Add rect area light in the examples. Other improvements (#138)
* wip: add rect area light in example

* fix normal not normalized

* update example

* fix light accumulation for custom light in deferred renderer

* fix alpha is larger than 1 in the light accumulation

* naming tweaks

* updateOffset in deferred renderer

* convert albedo color to sRGB in gbuffer

* support depth attachment in gbuffer

* fix some shadow map issue in deferred renderer

* clear depth buffer after render

* update pcf kernel in shadow

* fix light accumulate

* fix pcf shadow in deferred renderer

* deferred: fix pcss

* respect to material linear

* can disable camera bounding box intersection in shadowmap

* deferred: show black when there is no light

* resize support pixelRatio

* release alpha.18
2023-03-11 10:06:45 +08:00
..
2022-05-28 16:07:02 +08:00