summaryrefslogtreecommitdiff
path: root/servers/visual/rasterizer.h
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2014-06-11 10:41:03 -0300
committerJuan Linietsky <reduzio@gmail.com>2014-06-11 10:41:03 -0300
commit9b8696d3dd92e2ed6f310ad0f0bf3c2182c9c6ae (patch)
treeb2ed0515196bb774504b54aab0bf242992ac3d9f /servers/visual/rasterizer.h
parent6f0b4678e26c04abfc88c0226c803e78a108de98 (diff)
Light Baker!
-=-=-=-=-=-= -Support for lightmap baker, have fun figuring out how it works before tutorial is published.
Diffstat (limited to 'servers/visual/rasterizer.h')
-rw-r--r--servers/visual/rasterizer.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/servers/visual/rasterizer.h b/servers/visual/rasterizer.h
index a3cdff9859..0aa7fc2650 100644
--- a/servers/visual/rasterizer.h
+++ b/servers/visual/rasterizer.h
@@ -302,6 +302,11 @@ public:
virtual void multimesh_set_visible_instances(RID p_multimesh,int p_visible)=0;
virtual int multimesh_get_visible_instances(RID p_multimesh) const=0;
+ /* BAKED LIGHT */
+
+
+
+
/* IMMEDIATE API */
virtual RID immediate_create()=0;
@@ -490,6 +495,20 @@ public:
typedef Map<StringName,Variant> ParamOverrideMap;
+ struct BakedLightData {
+
+ VS::BakedLightMode mode;
+ RID octree_texture;
+ float color_multiplier; //used for both lightmaps and octree
+ Transform octree_transform;
+ Map<int,RID> lightmaps;
+ //cache
+
+ float octree_lattice_size;
+ float octree_lattice_divide;
+ int octree_steps;
+ Vector2 octree_tex_pixel_size;
+ };
struct InstanceData {
@@ -498,6 +517,8 @@ public:
RID material_override;
Vector<RID> light_instances;
Vector<float> morph_values;
+ BakedLightData *baked_light;
+ Transform *baked_light_octree_xform;
bool mirror :8;
bool depth_scale :8;
bool billboard :8;