Lighting WIP. Some bug fixes. #119

Merged
Xenosas1337 merged 8 commits from SP3-1-Rendering into main 2022-10-26 15:36:14 +08:00

8 Commits

Author SHA1 Message Date
Brandon Mak 43ea33cabf Merge remote-tracking branch 'origin/main' into SP3-1-Rendering 2022-10-26 15:26:41 +08:00
Brandon Mak 5637fb707f Tested light component. Values reflected in renderdoc correctly
- Added pure copy compute shader (used instead of kirsch)
- Created sparse set for lights
- Note that while the instanced attribute contains both EID and layer light index and in the future potentially more, the objects still write to a uint framebuffer. 
- Light layer index is in a different frame buffer than the eid one.
- Updated shaders to accommodate light layer index.
2022-10-26 02:14:43 +08:00
Brandon Mak 4b7a837469 Fixed some bugs in render graph
- Changed the eid buffer for instanced rendering to a vec2 (potentially vec3 or 4), to pass other types of data like light layer index. 
- Renamed some render graph nodes and subpasses. Added a dummy render pass to transition the scene to read only optimal.
- offscreen buffer resource now transitions to eShaderReadOnlyOptimal instead of eGeneral
2022-10-26 01:08:02 +08:00
Brandon Mak 5016600397 Lights WIP 2022-10-25 23:39:35 +08:00
Brandon Mak 0395df5c63 Lights WIP (bug fixes) 2022-10-25 19:59:16 +08:00
Brandon Mak 869916cb2a Lights WIP 2022-10-25 13:47:27 +08:00
Brandon Mak 8fb0eddcc1 Lights WIP 2022-10-25 00:00:22 +08:00
Brandon Mak 0788084bbd Merge remote-tracking branch 'origin/main' into SP3-1-Rendering 2022-10-23 16:59:16 +08:00