Merge pull request #81650 from bitsawer/fix_gles3_constant
Improve GLES3 scene renderer compatibility with older devices
This commit is contained in:
commit
1328367abd
@ -2666,7 +2666,7 @@ RasterizerSceneGLES3::RasterizerSceneGLES3() {
|
||||
global_defines += "#define MAX_GLOBAL_SHADER_UNIFORMS 256\n"; // TODO: this is arbitrary for now
|
||||
global_defines += "\n#define MAX_LIGHT_DATA_STRUCTS " + itos(config->max_renderable_lights) + "\n";
|
||||
global_defines += "\n#define MAX_DIRECTIONAL_LIGHT_DATA_STRUCTS " + itos(MAX_DIRECTIONAL_LIGHTS) + "\n";
|
||||
global_defines += "\n#define MAX_FORWARD_LIGHTS uint(" + itos(config->max_lights_per_object) + ")\n";
|
||||
global_defines += "\n#define MAX_FORWARD_LIGHTS " + itos(config->max_lights_per_object) + "u\n";
|
||||
material_storage->shaders.scene_shader.initialize(global_defines);
|
||||
scene_globals.shader_default_version = material_storage->shaders.scene_shader.version_create();
|
||||
material_storage->shaders.scene_shader.version_bind_shader(scene_globals.shader_default_version, SceneShaderGLES3::MODE_COLOR);
|
||||
|
Loading…
Reference in New Issue
Block a user