summaryrefslogtreecommitdiffstats
path: root/drivers/gles2/rasterizer_storage_gles2.h
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2018-09-28 20:32:40 -0300
committerJuan Linietsky <reduzio@gmail.com>2018-09-28 20:33:18 -0300
commitc83742ba86eadd03800369c3fb5b1c23f083c59e (patch)
tree3d5d27e0b2f661d01fe472af82b49b65d331120d /drivers/gles2/rasterizer_storage_gles2.h
parent4db2db2d6b4cf82c19f4ea96258071f5682dd592 (diff)
downloadredot-engine-c83742ba86eadd03800369c3fb5b1c23f083c59e.tar.gz
-Lightmap and lightmap capture support for GLES2
-Added hint to not show some properties when running on low end gfx
Diffstat (limited to 'drivers/gles2/rasterizer_storage_gles2.h')
-rw-r--r--drivers/gles2/rasterizer_storage_gles2.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/gles2/rasterizer_storage_gles2.h b/drivers/gles2/rasterizer_storage_gles2.h
index e22738a378..da7e200c96 100644
--- a/drivers/gles2/rasterizer_storage_gles2.h
+++ b/drivers/gles2/rasterizer_storage_gles2.h
@@ -1046,6 +1046,21 @@ public:
/* LIGHTMAP */
+ struct LightmapCapture : public Instanciable {
+
+ PoolVector<LightmapCaptureOctree> octree;
+ AABB bounds;
+ Transform cell_xform;
+ int cell_subdiv;
+ float energy;
+ LightmapCapture() {
+ energy = 1.0;
+ cell_subdiv = 1;
+ }
+ };
+
+ mutable RID_Owner<LightmapCapture> lightmap_capture_data_owner;
+
virtual RID lightmap_capture_create();
virtual void lightmap_capture_set_bounds(RID p_capture, const AABB &p_bounds);
virtual AABB lightmap_capture_get_bounds(RID p_capture) const;