You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-28 16:07:14 +00:00
Merge pull request #65408 from lawnjelly/dir_light_uninit
Fix GLES directional shadow uninitialized data
This commit is contained in:
@@ -288,13 +288,13 @@ public:
|
|||||||
bool shadow_atlas_update_light(RID p_atlas, RID p_light_intance, float p_coverage, uint64_t p_light_version);
|
bool shadow_atlas_update_light(RID p_atlas, RID p_light_intance, float p_coverage, uint64_t p_light_version);
|
||||||
|
|
||||||
struct DirectionalShadow {
|
struct DirectionalShadow {
|
||||||
GLuint fbo;
|
GLuint fbo = 0;
|
||||||
GLuint depth;
|
GLuint depth = 0;
|
||||||
GLuint color;
|
GLuint color = 0;
|
||||||
|
|
||||||
int light_count;
|
int light_count = 0;
|
||||||
int size;
|
int size = 0;
|
||||||
int current_light;
|
int current_light = 0;
|
||||||
} directional_shadow;
|
} directional_shadow;
|
||||||
|
|
||||||
virtual int get_directional_light_shadow_size(RID p_light_intance);
|
virtual int get_directional_light_shadow_size(RID p_light_intance);
|
||||||
|
|||||||
@@ -278,11 +278,11 @@ public:
|
|||||||
bool shadow_atlas_update_light(RID p_atlas, RID p_light_intance, float p_coverage, uint64_t p_light_version);
|
bool shadow_atlas_update_light(RID p_atlas, RID p_light_intance, float p_coverage, uint64_t p_light_version);
|
||||||
|
|
||||||
struct DirectionalShadow {
|
struct DirectionalShadow {
|
||||||
GLuint fbo;
|
GLuint fbo = 0;
|
||||||
GLuint depth;
|
GLuint depth = 0;
|
||||||
int light_count;
|
int light_count = 0;
|
||||||
int size;
|
int size = 0;
|
||||||
int current_light;
|
int current_light = 0;
|
||||||
} directional_shadow;
|
} directional_shadow;
|
||||||
|
|
||||||
virtual int get_directional_light_shadow_size(RID p_light_intance);
|
virtual int get_directional_light_shadow_size(RID p_light_intance);
|
||||||
|
|||||||
Reference in New Issue
Block a user