From 9b61c855ef00e14925cfdf8a5d61f854c51d92f4 Mon Sep 17 00:00:00 2001 From: clayjohn <claynjohn@gmail.com> Date: Mon, 16 May 2022 11:56:03 -0700 Subject: Add basic lighting to GLES3 renderer. This includes all three light types and IBL, but does not include shadows or any form of GI --- servers/rendering_server.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'servers/rendering_server.cpp') diff --git a/servers/rendering_server.cpp b/servers/rendering_server.cpp index fc40f058aa..766ca88e34 100644 --- a/servers/rendering_server.cpp +++ b/servers/rendering_server.cpp @@ -3006,8 +3006,8 @@ RenderingServer::RenderingServer() { // OpenGL limits GLOBAL_DEF_RST("rendering/limits/opengl/max_renderable_elements", 65536); ProjectSettings::get_singleton()->set_custom_property_info("rendering/limits/opengl/max_renderable_elements", PropertyInfo(Variant::INT, "rendering/limits/opengl/max_renderable_elements", PROPERTY_HINT_RANGE, "1024,65536,1")); - GLOBAL_DEF_RST("rendering/limits/opengl/max_renderable_lights", 256); - ProjectSettings::get_singleton()->set_custom_property_info("rendering/limits/opengl/max_renderable_lights", PropertyInfo(Variant::INT, "rendering/limits/opengl/max_renderable_lights", PROPERTY_HINT_RANGE, "16,4096,1")); + GLOBAL_DEF_RST("rendering/limits/opengl/max_renderable_lights", 32); + ProjectSettings::get_singleton()->set_custom_property_info("rendering/limits/opengl/max_renderable_lights", PropertyInfo(Variant::INT, "rendering/limits/opengl/max_renderable_lights", PROPERTY_HINT_RANGE, "2,256,1")); GLOBAL_DEF_RST("rendering/limits/opengl/max_lights_per_object", 8); ProjectSettings::get_singleton()->set_custom_property_info("rendering/limits/opengl/max_lights_per_object", PropertyInfo(Variant::INT, "rendering/limits/opengl/max_lights_per_object", PROPERTY_HINT_RANGE, "2,1024,1")); -- cgit v1.2.3