mirror of
https://github.com/godotengine/godot.git
synced 2025-02-17 22:43:01 +08:00
Fix compatibility shadow size not being initialised
This commit is contained in:
parent
918f046354
commit
59cd86f89d
@ -34,6 +34,7 @@
|
|||||||
#include "../rasterizer_gles3.h"
|
#include "../rasterizer_gles3.h"
|
||||||
#include "../rasterizer_scene_gles3.h"
|
#include "../rasterizer_scene_gles3.h"
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
#include "core/config/project_settings.h"
|
||||||
#include "texture_storage.h"
|
#include "texture_storage.h"
|
||||||
|
|
||||||
using namespace GLES3;
|
using namespace GLES3;
|
||||||
@ -46,6 +47,11 @@ LightStorage *LightStorage::get_singleton() {
|
|||||||
|
|
||||||
LightStorage::LightStorage() {
|
LightStorage::LightStorage() {
|
||||||
singleton = this;
|
singleton = this;
|
||||||
|
|
||||||
|
directional_shadow.size = GLOBAL_GET("rendering/lights_and_shadows/directional_shadow/size");
|
||||||
|
directional_shadow.use_16_bits = GLOBAL_GET("rendering/lights_and_shadows/directional_shadow/16_bits");
|
||||||
|
|
||||||
|
// lightmap_probe_capture_update_speed = GLOBAL_GET("rendering/lightmapping/probe_capture/update_speed");
|
||||||
}
|
}
|
||||||
|
|
||||||
LightStorage::~LightStorage() {
|
LightStorage::~LightStorage() {
|
||||||
|
Loading…
Reference in New Issue
Block a user