diff options
author | Juan Linietsky <reduzio@gmail.com> | 2016-12-20 00:21:07 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2016-12-20 00:21:07 -0300 |
commit | 075fde7f26d6c3b02df5108065d1a9f979437bb8 (patch) | |
tree | 991058c18d9715c8015fc3cfff0263d9d1e3cc1a /tools/editor/spatial_editor_gizmos.h | |
parent | 22a90e8f2acce60f92958788a52b3f0bdb1a0cdf (diff) |
work in progress global illumination
Diffstat (limited to 'tools/editor/spatial_editor_gizmos.h')
-rw-r--r-- | tools/editor/spatial_editor_gizmos.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tools/editor/spatial_editor_gizmos.h b/tools/editor/spatial_editor_gizmos.h index 2cc1a7eab8..eba143d32b 100644 --- a/tools/editor/spatial_editor_gizmos.h +++ b/tools/editor/spatial_editor_gizmos.h @@ -46,6 +46,7 @@ #include "scene/3d/ray_cast.h" #include "scene/3d/navigation_mesh.h" #include "scene/3d/reflection_probe.h" +#include "scene/3d/gi_probe.h" #include "scene/3d/vehicle_body.h" #include "scene/3d/collision_polygon.h" @@ -327,6 +328,25 @@ public: }; +class GIProbeGizmo : public EditorSpatialGizmo { + + OBJ_TYPE(GIProbeGizmo ,EditorSpatialGizmo); + + + GIProbe* probe; + +public: + + virtual String get_handle_name(int p_idx) const; + virtual Variant get_handle_value(int p_idx) const; + virtual void set_handle(int p_idx,Camera *p_camera, const Point2& p_point); + virtual void commit_handle(int p_idx,const Variant& p_restore,bool p_cancel=false); + + void redraw(); + GIProbeGizmo(GIProbe* p_notifier=NULL); + +}; + class CollisionShapeSpatialGizmo : public EditorSpatialGizmo { @@ -496,6 +516,8 @@ public: Ref<FixedSpatialMaterial> skeleton_material; Ref<FixedSpatialMaterial> reflection_probe_material; Ref<FixedSpatialMaterial> reflection_probe_material_internal; + Ref<FixedSpatialMaterial> gi_probe_material; + Ref<FixedSpatialMaterial> gi_probe_material_internal; Ref<FixedSpatialMaterial> room_material; Ref<FixedSpatialMaterial> portal_material; Ref<FixedSpatialMaterial> raycast_material; |