Add direct lighting rendering into Global Surface Atlas

This commit is contained in:
Wojciech Figat
2022-04-13 16:26:19 +02:00
parent 0a27d277a0
commit 0668a23167
10 changed files with 322 additions and 97 deletions

View File

@@ -6,6 +6,7 @@
// This must match C++
#define GLOBAL_SURFACE_ATLAS_OBJECT_SIZE (5 + 6 * 5) // Amount of float4s per-object
#define GLOBAL_SURFACE_ATLAS_TILE_NORMAL_THRESHOLD 0.1f // Cut-off value for tiles transitions blending during sampling
#define GLOBAL_SURFACE_ATLAS_TILE_PROJ_PLANE_OFFSET 0.1f // Small offset to prevent clipping with the closest triangles (shifts near and far planes)
struct GlobalSurfaceTile
{