claygl/example/composite_lighting_rect.html
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

12 lines
255 B
HTML

<html>
<head>
<meta charset="utf-8" />
<title>Lighting Composite Node</title>
</head>
<body>
<canvas width="1200" height="640" id="main"></canvas>
<script type="module" src="./composite_lighting_rect.ts"></script>
</body>
</html>