From 920db604d26e2e82b6289807ad8a0607b310eef6 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Fri, 6 Sep 2019 22:51:27 -0300 Subject: Rewrote large part of rendering, omni and spot shadows now work. --- drivers/gles3/rasterizer_scene_gles3.h | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'drivers/gles3/rasterizer_scene_gles3.h') diff --git a/drivers/gles3/rasterizer_scene_gles3.h b/drivers/gles3/rasterizer_scene_gles3.h index 474bbce1d6..e30bcfdd2c 100644 --- a/drivers/gles3/rasterizer_scene_gles3.h +++ b/drivers/gles3/rasterizer_scene_gles3.h @@ -216,7 +216,7 @@ public: /* SHADOW ATLAS API */ - struct ShadowAtlas { + struct ShadowAtlas { enum { QUADRANT_SHIFT = 27, @@ -288,7 +288,7 @@ public: /* REFLECTION PROBE ATLAS API */ - struct ReflectionAtlas { + struct ReflectionAtlas { int subdiv; int size; @@ -307,8 +307,7 @@ public: mutable RID_PtrOwner reflection_atlas_owner; virtual RID reflection_atlas_create(); - virtual void reflection_atlas_set_size(RID p_ref_atlas, int p_size); - virtual void reflection_atlas_set_subdivision(RID p_ref_atlas, int p_subdiv); + virtual void reflection_atlas_configure(RID p_ref_atlas, int p_size, int p_count); /* REFLECTION CUBEMAPS */ @@ -324,7 +323,7 @@ public: /* REFLECTION PROBE INSTANCE */ - struct ReflectionProbeInstance { + struct ReflectionProbeInstance { RasterizerStorageGLES3::ReflectionProbe *probe_ptr; RID probe; @@ -364,7 +363,7 @@ public: /* ENVIRONMENT API */ - struct Environment { + struct Environment { VS::EnvironmentBG bg_mode; @@ -590,7 +589,7 @@ public: float shadow_split_offsets[4]; }; - struct LightInstance { + struct LightInstance { struct ShadowTransform { @@ -639,7 +638,7 @@ public: /* REFLECTION INSTANCE */ - struct GIProbeInstance { + struct GIProbeInstance { RID data; RasterizerStorageGLES3::GIProbe *probe; GLuint tex_cache; -- cgit v1.2.3