diff options
author | Juan Linietsky <reduzio@gmail.com> | 2014-05-04 22:50:23 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2014-05-04 22:50:23 -0300 |
commit | 72ae89c5aa8da9110ec8f89e5558d5d04935f3b5 (patch) | |
tree | 453b2c8b8cc0edc588cee2dd3e440b30ff729ae2 /servers/visual/visual_server_raster.cpp | |
parent | 3c17e0c91548299b60a6d3998eadb303418512cc (diff) | |
download | redot-engine-72ae89c5aa8da9110ec8f89e5558d5d04935f3b5.tar.gz |
Lots of 3D improvements:
-Object Manipulator Gizmo keeps proper scale in all windows and projections, (configurable on settings too).
-Manipulator gizmos for other objects (camera, shapes, etc) massively improved and bug-fixed.
-Manipulator gizmos are different for edited object and other objects.
-Properly highlight manipulator gizmo handles when hovered.
-Fixed bugs in fragment program when using more than 1 light together.
-Reload png/jpg files automatically in editor if edited externally.
-Added 4-stages Parallel Split Shadow Mapping, to improve shadow quality in large scenarios
-Added PCF13 to improve smoothness of shadow borders
-General optimization of directional light shadow mapping for Orthogonal,PSM and PSSM.
-Fixed normal mapping when importing DAE files, works nicely now.
Diffstat (limited to 'servers/visual/visual_server_raster.cpp')
-rw-r--r-- | servers/visual/visual_server_raster.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/servers/visual/visual_server_raster.cpp b/servers/visual/visual_server_raster.cpp index 2108e5b9c2..6b74b34ba1 100644 --- a/servers/visual/visual_server_raster.cpp +++ b/servers/visual/visual_server_raster.cpp @@ -434,6 +434,21 @@ int VisualServerRaster::mesh_get_surface_count(RID p_mesh) const{ } + +void VisualServerRaster::mesh_set_custom_aabb(RID p_mesh,const AABB& p_aabb) { + + VS_CHANGED; + _dependency_queue_update(p_mesh,true); + rasterizer->mesh_set_custom_aabb(p_mesh,p_aabb); + +} + +AABB VisualServerRaster::mesh_get_custom_aabb(RID p_mesh) const { + + return rasterizer->mesh_get_custom_aabb(p_mesh); +} + + /* MULTIMESH */ RID VisualServerRaster::multimesh_create() { |