summaryrefslogtreecommitdiff
path: root/drivers/gles3/rasterizer_scene_gles3.h
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2019-09-06 22:51:27 -0300
committerJuan Linietsky <reduzio@gmail.com>2020-02-11 12:01:18 +0100
commit920db604d26e2e82b6289807ad8a0607b310eef6 (patch)
treeeedd704c8df67b4f7931bd2f955a8ce6834ac3dd /drivers/gles3/rasterizer_scene_gles3.h
parent1d871f6226c2a82415291d58f7e91be60e94f203 (diff)
Rewrote large part of rendering, omni and spot shadows now work.
Diffstat (limited to 'drivers/gles3/rasterizer_scene_gles3.h')
-rw-r--r--drivers/gles3/rasterizer_scene_gles3.h15
1 files changed, 7 insertions, 8 deletions
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<ReflectionAtlas> 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;