Add back shadowDistanceRenderMul and make it toggle a max shadow bound. fix lightleaking in water, when underground

This commit is contained in:
Xonk
2023-07-13 22:32:40 -04:00
parent 0b4bf8e7c6
commit 3ee5e1e8e0
4 changed files with 48 additions and 18 deletions

View File

@ -15,6 +15,9 @@ screen.Direct_Light = Direct Light
option.RENDER_ENTITY_SHADOWS = Shadows for Entities
option.shadowMapResolution = Shadow Resolution
option.shadowDistance = Shadow Distance
option.shadowDistanceRenderMul = Optimized Shadow Bounds
value.shadowDistanceRenderMul.-1.0 = Un-Optimized
value.shadowDistanceRenderMul.1.0 = Optimized
screen.Filtering = Shadow Filtering Settings
option.SHADOW_FILTER_SAMPLE_COUNT = Basic Shadow Filter Samples
option.Min_Shadow_Filter_Radius = Minimum Shadow filter Radius
@ -276,7 +279,8 @@ screen.Shadows.comment = Configure the shadows from the sun to your liking.
option.SCREENSPACE_CONTACT_SHADOWS.comment = Screen-space contact shadows. §bWhat is this?§r These are small shadows for things that are far away, and on small details nearby. §aPERFORMANCE COST:§r low to medium; it is more expensive at higher resolutions.
option.RENDER_ENTITY_SHADOWS.comment = §bWhat is this?§r Shadows on all types of entities, like mobs, chests, banners, or signs. §aPERFORMANCE COST:§r low to high; it is very expensive when there are many entities nearby.
option.shadowMapResolution.comment = The quality of shadows from the sun casted by things in the world. §aPERFORMANCE COST:§r medium to very high; Shadows must render the 3D world a second time from the perspective of the sun, this is why it cuts performance in half.
option.shadowDistance.comment = The maximum distance the shadowmap can render (this is not linear distance). I recommend default shadow distance, because the contact shadows can handle far away shadows. §aPERFORMANCE COST:§r medium to very high; If the chunk render distance is high, the shadows will become more expensive.
option.shadowDistance.comment.comment = The maximum distance the shadowmap can render (this is not linear distance). I recommend default shadow distance, because the contact shadows can handle far away shadows. §aPERFORMANCE COST:§r medium to very high; If the chunk render distance is high, the shadows will become more expensive.
option.shadowDistanceRenderMul.comment = Render the shadows only in a sphere around you, limited to the shadow distance measured in blocks. un-optimized does not render the shadows in a sphere, and can cover alot more area with the same distance settings. the distance is not measured linearly in blocks when set to un-optimized. §aPERFORMANCE COST:§r low to medium. Optimized is faster, and unoptimized is slower.
screen.Filtering.comment = Configure the filtering effects applied to the shadows.
option.SHADOW_FILTER_SAMPLE_COUNT.comment = The quality of the basic shadow filter. This filter just softens the shadows. §aPERFORMANCE COST:§r low to medium; Increasing this should reduce some noise at the edge of shadows.
option.Min_Shadow_Filter_Radius.comment = The maximum softness of the basic shadow filter.