1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-11-19 16:15:19 +01:00

Dynamic shadows with the ogles2 driver on OpenGL ES 3.0+ (#16661)

This commit is contained in:
grorp
2025-11-17 17:55:13 +01:00
committed by GitHub
parent ac0ebf39ad
commit fcd96e9244
22 changed files with 97 additions and 70 deletions

View File

@@ -355,10 +355,10 @@ local function check_requirements(name, requires, context)
return true
end
local video_driver = core.get_active_driver()
local touch_support = core.irrlicht_device_supports_touch()
local touch_controls = core.settings:get("touch_controls")
local touch_interaction_style = core.settings:get("touch_interaction_style")
local shadows_support = core.driver_supports_shadows()
local special = {
android = PLATFORM == "Android",
desktop = PLATFORM ~= "Android",
@@ -367,9 +367,8 @@ local function check_requirements(name, requires, context)
-- be used, so we show settings for both.
touchscreen = touch_support and (touch_controls == "auto" or core.is_yes(touch_controls)),
keyboard_mouse = not touch_support or (touch_controls == "auto" or not core.is_yes(touch_controls)),
opengl = (video_driver == "opengl" or video_driver == "opengl3"),
gles = video_driver:sub(1, 5) == "ogles",
touch_interaction_style_tap = touch_interaction_style ~= "buttons_crosshair",
shadows_support = shadows_support,
}
for req_key, req_value in pairs(requires) do

View File

@@ -69,7 +69,7 @@ end
return {
query_text = "Shadows",
requires = {
opengl = true,
shadows_support = true,
},
context = "client",
get_formspec = function(self, avail_w)