Commit d8e45fb
authored
Add DDGI for global illumination (#243)
* Continue work on DDGI
* Move sample counts to globals in shader to allow for setting up the probe buffers CPU side
* Continued DDGI work
* DDGI volume deletion
Selection tool scales with size of item, even if not a model
Fixed error in component inspection that would recreate an item indefinitely when a uint value was defined
* Split ddgi debug to own shader
* Continued DDGI work. Initial probe update close to finished.
* Fix ratio calculation and add range adjustment for texture preview
* Start working on step 2 of DDGI, finalizing the light contributions
* Continued work on finalization shader
* Continue work on probe finalize
* More work on probe finalization
* More DDGI stuff, feeding the blending shader and syncing resources.
* Minor fixes
* Add DDGI to clustering system
* Add color masking to Imgui shader
* Add more DDGI settings
* Add switch to enable/disable terrain shadows
* Continued DDGI work and added script to convert old surface definitions to new.
* Add mode for converting an entire folder to the surface updater
* Make DDGI buffers full precision when working
* Raytracing fixes
* Fix resource server not picking the correct loader
* Fix bugs in material parsing
* Make area lights cull in view space in shader, but passed in world space
* Add texture channel masking to resource browser
* Fixed typo
* Bind ray tracing pipeline before binding resources to ensure the layout change doesn't invalidate the bindings
* Fix lights not showing in raytracing.
Also fix surface updater correctly setting the value in tags instead of putting it as XML content.
* Broken, but trying to fix probe direction being wrong in finalize.
* DDGI almost working
* Many DDGI fixes
* Got DDGI running!
* Initial implementation of probe relocation feature
* Add blending between GI volumes and continue work on extra DDGI features like infinite scrolling, classification, etc.
* Merge together the different DDGI volume structs to one.
Fix debug rendering of DDGI probes
* Fix ddgi probe relocation
* Add probe classification function.
* Use new raytracing payload.
Use true random rotation transform for DDGI instead of just rotating the current one.
* Add missing attributes to GI volume component
* Move graphicsfeature settings to levelsettings and projectsettings
* Remove old graphics feature flatbuffer schemas
* Make DDGI use project settings
* Use level settings to load the terrain and vegetation stuff
* Fix materials and frame scripts not detecting when a recompile is necessary
* Fix validation error for shader resource access now when we do the lighting in the hit shader
* Fix raytracing test pass so it doesn't flicker.
Also fixes incorrect GLTF emissive calculation
* Add tbui to graphics feature
* Fix DDGI partial update
* Fix incorrect GLTF shader implementations
* Area lights were missing diffuse...
* Allow interactions with viewport without explicit focus.
Allows hovering to get 'focus' for picking and manipulating gadgets.
* Fix materials not getting updated in the raytracing material system
* Comments
* -128 is 0x80, +127 is 0x7F...
* Add names to resource tables
* Minor fixes
* Options fixes
* Ensure we can't have less than the lowest required amount of rays per probe
* More fixes for lowest amount of allowed rays per probe
* Fix build
* More build fixes
* Fix test apps with new API for setting up globallight (w/o backlight garbage)
* Add base level and fix include of old terrain settings.
Fix DDGI compile issue
* Working on fixing a raytracing bug and fixing some stupid decisions with mesh exporting
* Fix physics with the new nvx format
* Use uint64 for GPU offsets and sizes
Also limit uniform buffer binding to size min(MaxUniformSize, buffer.size)
* Fix graphics manager not triggering DDGI if raytracing is off
* Some raytracing fixes
* Revert max vertex count
* Working on fixing what appears to be incorrect material assignment when raytracing.
* Fix raytracing issues where a model with multiple primitive groups wouldn't render correctly.
* Fix mesh unload double delete
* Improve DDGI debugging and safe guard against negative energy
* Material template generator spits out 16 bit aligned material types when used as pointers.
* Remove StackAlloc in favor of ArrayAllocStack, which is a thread local linear buffer.
* Fix some export issues
* Material asset editor allows for copy-paste of textures using right click (copy) and middle click (paste)
* Correctly scale selection boxes based on object scale
* Minor fixes in material loader, mainly renaming the global state to materialLoaderState to not confuse debuggers (didn't work)
* Disable point sampling for mip mapped normal maps. Technically normal maps "can't" be mipped but whatever...
* Add DDGI update frequency to project settings
* New syswork export with the changes done to the content
* Fix bug with light grid where lights didn't have enough cells to be culled into. Miracle it ever worked.
I think this could be solved in a better way, but it will work for now.
* Turn on raytracing by default on models. Only does something if raytracing is enabled anyways.1 parent 016c7ad commit d8e45fb
File tree
131 files changed
+4552
-1064
lines changed- code
- addons
- dynui
- imgui/shaders
- graphicsfeature
- components
- managers
- nflatbuffer
- application
- appgame
- game
- foundation
- ids
- math
- memory/win32
- options
- physics/physics
- render
- characters
- coregraphics
- vk
- decals
- fog
- frame
- gi
- shaders
- graphics
- lighting
- materials
- posteffects
- raytracing
- shaders
- visibility
- resource
- resources
- fips-files
- converters
- generators
- syswork
- data/flatbuffer
- graphicsfeature
- options
- shaders/vk
- lib
- tests
- testtbui
- testviewer
- testvisibility
- work/data/tables
- toolkit
- editor
- editorfeature
- editor/ui
- modules
- windows
- asseteditor
- toolkitutil/model
- import
- base
- fbx/node
- gltf
- node
- meshutil
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
131 files changed
+4552
-1064
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| 9 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| 19 | + | |
18 | 20 | | |
| 21 | + | |
| 22 | + | |
19 | 23 | | |
20 | 24 | | |
21 | 25 | | |
| |||
37 | 41 | | |
38 | 42 | | |
39 | 43 | | |
40 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
41 | 67 | | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
| 68 | + | |
47 | 69 | | |
48 | 70 | | |
49 | 71 | | |
| |||
75 | 97 | | |
76 | 98 | | |
77 | 99 | | |
78 | | - | |
79 | | - | |
| 100 | + | |
| 101 | + | |
80 | 102 | | |
81 | 103 | | |
82 | 104 | | |
| |||
86 | 108 | | |
87 | 109 | | |
88 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
89 | 116 | | |
90 | 117 | | |
91 | 118 | | |
| 119 | + | |
| 120 | + | |
92 | 121 | | |
93 | 122 | | |
94 | | - | |
| 123 | + | |
95 | 124 | | |
96 | 125 | | |
97 | 126 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
136 | 149 | | |
137 | 150 | | |
138 | 151 | | |
| |||
175 | 188 | | |
176 | 189 | | |
177 | 190 | | |
| 191 | + | |
178 | 192 | | |
179 | 193 | | |
180 | 194 | | |
| |||
199 | 213 | | |
200 | 214 | | |
201 | 215 | | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
202 | 222 | | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
203 | 229 | | |
204 | 230 | | |
205 | 231 | | |
| |||
343 | 369 | | |
344 | 370 | | |
345 | 371 | | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
346 | 375 | | |
347 | 376 | | |
348 | 377 | | |
| |||
353 | 382 | | |
354 | 383 | | |
355 | 384 | | |
356 | | - | |
| 385 | + | |
357 | 386 | | |
358 | 387 | | |
359 | 388 | | |
| |||
394 | 423 | | |
395 | 424 | | |
396 | 425 | | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
397 | 444 | | |
398 | 445 | | |
399 | 446 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
34 | 41 | | |
35 | 42 | | |
36 | 43 | | |
| |||
79 | 86 | | |
80 | 87 | | |
81 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
82 | 92 | | |
83 | 93 | | |
84 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
4 | 3 | | |
5 | 4 | | |
| |||
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
15 | 18 | | |
16 | 19 | | |
17 | 20 | | |
| |||
0 commit comments