mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02:00
Tune shadow perspective distortion (#12146)
* Pass perspective distortion parameters as uniforms * Set all perspective bias parameters via ShadowRenderer * Recalibrate perspective distortion and shadow range to render less shadow geometry with the same quality and observed shadow distance
This commit is contained in:
@@ -364,11 +364,11 @@ local function handle_settings_buttons(this, fields, tabname, tabdata)
|
||||
core.settings:set("enable_dynamic_shadows", "false")
|
||||
else
|
||||
local shadow_presets = {
|
||||
[2] = { 80, 512, "true", 0, "false" },
|
||||
[3] = { 120, 1024, "true", 1, "false" },
|
||||
[4] = { 350, 2048, "true", 1, "false" },
|
||||
[5] = { 350, 2048, "true", 2, "true" },
|
||||
[6] = { 450, 4096, "true", 2, "true" },
|
||||
[2] = { 55, 512, "true", 0, "false" },
|
||||
[3] = { 82, 1024, "true", 1, "false" },
|
||||
[4] = { 240, 2048, "true", 1, "false" },
|
||||
[5] = { 240, 2048, "true", 2, "true" },
|
||||
[6] = { 300, 4096, "true", 2, "true" },
|
||||
}
|
||||
local s = shadow_presets[table.indexof(labels.shadow_levels, fields["dd_shadows"])]
|
||||
if s then
|
||||
|
Reference in New Issue
Block a user