Commit 6706902
Path tracing: emission no longer requires an emission texture
The standard material hit group gated the entire emissive term on the
has-emission-texture flag, so a material with emission enabled but no emission
texture contributed nothing: the colour and strength were uploaded to the
material buffer and then never read. Emission colour and strength now stand on
their own and the texture, when present, modulates them.
Measured on a box with emission (1.0, 0.3, 0.1) at strength 4 and no texture,
mean colour over the box: path traced (0.3153, 0.3271, 0.3472) before, a cool
cast from sky lighting alone, versus (0.5283, 0.4370, 0.3811) after, matching
the (0.5052, 0.4251, 0.3670) the raster path produces for the same scene.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0157aNVZVYS69abA9d8xEQbb1 parent ef18d06 commit 6706902
1 file changed
Lines changed: 6 additions & 3 deletions
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
426 | 426 | | |
427 | 427 | | |
428 | 428 | | |
429 | | - | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
430 | 433 | | |
431 | | - | |
432 | | - | |
| 434 | + | |
433 | 435 | | |
| 436 | + | |
434 | 437 | | |
435 | 438 | | |
436 | 439 | | |
| |||
0 commit comments