Commit b4deee2
Solari: More examples, fix emissive (#22295)
* Add a small profiling overlay to the Solari example that times
different parts of Solari's GPU work (DLSS-RR not added because wgpu
timestamps aren't working correctly with wgpu_hal work, I need to fix
that as a separate thing)
* Add a many-lights stress test to the Solari example (100 lights)
inspired by https://x.com/Roystoncinemo/status/1841917611833229411.
Currently somewhat unusable, but this will ideally be a bigger focus for
Solari 0.19.
* Changed emissive to have exposure applied, as if
`emissive_exposure_weight` was always set to 1.0 (StandardMaterial
defaults to 0.0 which I'm not convinced is a good idea, but that's a
separate topic). If we didn't do this, the emissive meshes would render
as insanely bright white to the point of overflowing the texture and
breaking DLSS-RR. I think the new behavior is more what people expect to
happen, and matches the pathtracer result now.
<img width="3206" height="1875" alt="image"
src="https://github.com/user-attachments/assets/af3990d6-ae2d-4520-a7cd-f04041685152"
/>
---------
Co-authored-by: Chris Biscardi <[email protected]>
Co-authored-by: Alice Cecile <[email protected]>1 parent 9e8c600 commit b4deee2
File tree
3 files changed
+285
-15
lines changed- crates/bevy_solari/src/realtime
- examples/3d
3 files changed
+285
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
243 | | - | |
244 | 243 | | |
245 | 244 | | |
246 | 245 | | |
| |||
262 | 261 | | |
263 | 262 | | |
264 | 263 | | |
| 264 | + | |
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
271 | 274 | | |
272 | 275 | | |
273 | 276 | | |
| |||
301 | 304 | | |
302 | 305 | | |
303 | 306 | | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
304 | 311 | | |
305 | 312 | | |
306 | 313 | | |
| |||
315 | 322 | | |
316 | 323 | | |
317 | 324 | | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
318 | 329 | | |
319 | 330 | | |
320 | 331 | | |
| |||
329 | 340 | | |
330 | 341 | | |
331 | 342 | | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
332 | 346 | | |
333 | 347 | | |
334 | 348 | | |
335 | 349 | | |
336 | 350 | | |
337 | 351 | | |
338 | | - | |
339 | | - | |
| 352 | + | |
340 | 353 | | |
341 | 354 | | |
342 | 355 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
100 | 99 | | |
101 | 100 | | |
| 101 | + | |
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| |||
0 commit comments