This commit is contained in:
Marc Gilleron 2021-01-30 01:39:28 +00:00
parent db7fc640c1
commit 7682e8fbcc
3 changed files with 2 additions and 2 deletions

View File

@ -70,6 +70,7 @@ void VoxelTool::set_sdf_scale(float s) {
Ref<VoxelRaycastResult> VoxelTool::raycast(Vector3 pos, Vector3 dir, float max_distance, uint32_t collision_mask) { Ref<VoxelRaycastResult> VoxelTool::raycast(Vector3 pos, Vector3 dir, float max_distance, uint32_t collision_mask) {
ERR_PRINT("Not implemented"); ERR_PRINT("Not implemented");
return Ref<VoxelRaycastResult>(); return Ref<VoxelRaycastResult>();
// See derived classes for implementations
} }
uint64_t VoxelTool::get_voxel(Vector3i pos) { uint64_t VoxelTool::get_voxel(Vector3i pos) {

View File

@ -20,7 +20,7 @@ bool VoxelToolTerrain::is_area_editable(const Rect3i &box) const {
} }
Ref<VoxelRaycastResult> VoxelToolTerrain::raycast(Vector3 pos, Vector3 dir, float max_distance, uint32_t collision_mask) { Ref<VoxelRaycastResult> VoxelToolTerrain::raycast(Vector3 pos, Vector3 dir, float max_distance, uint32_t collision_mask) {
// TODO Transform input if the terrain is rotated (in the future it can be made a Spatial node) // TODO Transform input if the terrain is rotated
// TODO Implement broad-phase on blocks to minimize locking and increase performance // TODO Implement broad-phase on blocks to minimize locking and increase performance
struct RaycastPredicate { struct RaycastPredicate {

View File

@ -683,7 +683,6 @@ float VoxelGeneratorGraph::debug_measure_microseconds_per_voxel(bool singular) {
} }
float us = static_cast<double>(elapsed_us) / voxel_count; float us = static_cast<double>(elapsed_us) / voxel_count;
// print_line(String("Time: {0}us").format(varray(us)));
return us; return us;
} }