Skip to content

Commit

Permalink
vk: rt: fixup too bright direct lighting
Browse files Browse the repository at this point in the history
  • Loading branch information
w23 committed Jan 26, 2024
1 parent a578bec commit be8da32
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 6 additions & 4 deletions ref/vk/TODO.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
## Next
- [ ] add white furnace render test
- [ ] tune A-Trous step widths for different channels
- [ ] temporal glitches with dontBlurSamples() and ATrous
- [ ] fix no-hit bounce absent legacy blending
- [ ] -vkdbgprintf or something
- [ ] performance profiling and comparison

# Previously
## 2024-01-26 E369
- [ ] white furnace test
- [x] white furnace test
- [x] do it using display_only mode
- [x] do it via separate flag
- [x] too dark indirect: blurSamples() returns values too small (incorrect sigma|scale?)
- [x] do a box blur test
- [x] do A-trous wavelet denoiser
- [ ] tune A-Trous step widths for different channels
- [x] diffuse and specular debug display modes
- [ ] temporal glitches with dontBlurSamples() and ATrous
- [x] why did direct lighting became brighter on c2a5?

# Previously
## 2024-01-23 E368
- [ ] specular bounce
- [x] specular-vs-diffuse choice based on metalness+frensel
Expand Down
2 changes: 0 additions & 2 deletions ref/vk/shaders/denoiser.comp
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,8 @@ Components blurATrous(const ivec2 res, const ivec2 pix, vec3 pos, vec3 shading_n

const float one_over_weight = 1. / weight_total;
c.direct_diffuse *= one_over_weight;
c.direct_diffuse *= one_over_weight;
c.indirect_diffuse *= one_over_weight;
c.direct_specular *= one_over_weight;
c.direct_specular *= one_over_weight;
c.indirect_specular *= one_over_weight;
return c;
}
Expand Down

0 comments on commit be8da32

Please sign in to comment.