mirror of
https://github.com/pissang/claygl.git
synced 2026-01-18 16:22:29 +00:00
* 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
12 lines
255 B
HTML
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>
|