summaryrefslogtreecommitdiff
path: root/tools/editor/plugins/baked_light_baker.h
diff options
context:
space:
mode:
authorSaracen <SaracenOne@gmail.com>2015-09-18 15:23:00 +0100
committerSaracen <SaracenOne@gmail.com>2015-11-02 16:25:16 +0000
commit53c9e8301c41b8ede999a7596643e33e36d2ca40 (patch)
treec6c52a3ac7397aec54e56469c29eaf3615cab43a /tools/editor/plugins/baked_light_baker.h
parentb2f9acb8c96aed0505cbac21661e21e4acef710f (diff)
Ignore alpha materials in baked light ray-tracer.
Diffstat (limited to 'tools/editor/plugins/baked_light_baker.h')
-rw-r--r--tools/editor/plugins/baked_light_baker.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/editor/plugins/baked_light_baker.h b/tools/editor/plugins/baked_light_baker.h
index 8fbeeddc6a..58197283a2 100644
--- a/tools/editor/plugins/baked_light_baker.h
+++ b/tools/editor/plugins/baked_light_baker.h
@@ -92,6 +92,9 @@ public:
Param diffuse;
Param specular;
Param emission;
+
+ bool is_double_sided;
+ bool use_alpha;
};
struct Triangle {
@@ -154,6 +157,7 @@ public:
struct BVH {
+ int id;
AABB aabb;
Vector3 center;
Triangle *leaf;
@@ -307,7 +311,7 @@ public:
void _plot_light(ThreadStack& thread_stack,const Vector3& p_plot_pos,const AABB& p_plot_aabb,const Color& p_light,const Color& p_tint_light,bool p_only_full,const Plane& p_plane);
//void _plot_light_point(const Vector3& p_plot_pos, Octant *p_octant, const AABB& p_aabb,const Color& p_light);
- float _throw_ray(ThreadStack& thread_stack,bool p_bake_direct,const Vector3& p_begin, const Vector3& p_end,float p_rest,const Color& p_light,float *p_att_curve,float p_att_pos,int p_att_curve_len,int p_bounces,bool p_first_bounce=false,bool p_only_dist=false);
+ float _throw_ray(ThreadStack& thread_stack,bool p_bake_direct,const Vector3& p_begin, const Vector3& p_end,float p_rest,const Color& p_light,float *p_att_curve,float p_att_pos,int p_att_curve_len,int p_bounces,bool p_first_bounce=false,bool p_only_dist=false, Vector<int>&p_ignore_list=Vector<int>());
float total_light_area;