Add water reflection toggle - #1126
Conversation
660cf8d to
19e5a15
Compare
19e5a15 to
705228d
Compare
There was a problem hiding this comment.
This is a decent implementation, but I would change it to use a shader #define, since it's a rarely changed option. That is, remove the UBO additions and add another define here & use preprocessor macro #if in the shader:
RLHD/src/main/java/rs117/hd/HdPlugin.java
Lines 907 to 937 in 538158e
The remaining issue is this naming will be confusing with the upcoming water in #626, which will have proper reflections. To get around this, we could rename the config to something like Water sun reflection, but on top of this, the new water is likely to come after #655, at which point the sun reflection may be directly tied to the skybox & no longer easy to disable via a toggle. This all depends on the implementation though, but this is all to say that if we add this toggle, it's likely to end up as a legacy toggle anyway. We might as well leave this PR open for the time being though.
705228d to
9eaceeb
Compare
|
Thanks, that makes sense. I've updated this to use a shader define and renamed the setting to It now only toggles the sun highlight and leaves point-light highlights alone. I've tested both states in-game and rebased the PR onto the latest master as well. Happy to revisit the naming or placement once the direction of #655 and #626 becomes clearer. |


Adds a new
Water Reflectionssetting under Environment settings.When disabled, the shader removes the bright moving specular highlights from water while leaving the rest of the water look intact: animated normals, foam, shoreline translucency, surface color, and fresnel are preserved. The setting defaults to enabled, so existing visuals are unchanged unless users opt out.
This is intended to help users who are sensitive to bright moving water reflections.
Fixes #1032
Screenshots: