Closed JonasGilg closed 2 years ago
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
plugins/csp-rings/src/Ring.cpp | 0 | 10 | 0.0% | ||
<!-- | Total: | 0 | 10 | 0.0% | --> |
Totals | |
---|---|
Change from base Build 2614742148: | -0.002% |
Covered Lines: | 491 |
Relevant Lines: | 16403 |
Awesome! Have you tested this in VR? The computation of the lit side looks a bit as if it could go wrong there :wink:
I tried the following functions for the dark ring side. At the bottom is a reference image. I am not quite happy with any of them, but I think for a real solution we need a much more complex approach with scattering calculations.
No HDR | HDR (default) | HDR (-3.5 compensation) | |
---|---|---|---|
1-a | |||
(1-a)^2 | |||
-sqrt(a)+1 | |||
1-a^2 |
Reference:
I tested it on the power wall in VR and it works. You can even see the light side with one eye and the dark side with the other.
Rings have now shading on the dark side based on transparency: