Formatting
This commit is contained in:
parent
d96db0d329
commit
a24b33eca1
@ -242,7 +242,6 @@ static void generate_blocky_mesh(
|
||||
const Color modulate_color = voxel.get_color();
|
||||
|
||||
if (bake_occlusion) {
|
||||
|
||||
for (unsigned int i = 0; i < vertex_count; ++i) {
|
||||
Vector3 v = side_positions[i];
|
||||
|
||||
|
@ -1,7 +1,6 @@
|
||||
#include "voxel_mesher.h"
|
||||
|
||||
Ref<Mesh> VoxelMesher::build_mesh(Ref<VoxelBuffer> voxels) {
|
||||
|
||||
ERR_FAIL_COND_V(voxels.is_null(), Ref<ArrayMesh>());
|
||||
|
||||
Output output;
|
||||
@ -23,7 +22,6 @@ Ref<Mesh> VoxelMesher::build_mesh(Ref<VoxelBuffer> voxels) {
|
||||
}
|
||||
|
||||
void VoxelMesher::build(Output &output, const Input &input) {
|
||||
|
||||
ERR_PRINT("Not implemented");
|
||||
}
|
||||
|
||||
@ -47,7 +45,6 @@ VoxelMesher *VoxelMesher::clone() {
|
||||
}
|
||||
|
||||
void VoxelMesher::_bind_methods() {
|
||||
|
||||
// Shortcut if you want to generate a mesh directly from a fixed grid of voxels.
|
||||
// Useful for testing the different meshers.
|
||||
ClassDB::bind_method(D_METHOD("build_mesh", "voxel_buffer"), &VoxelMesher::build_mesh);
|
||||
|
Loading…
x
Reference in New Issue
Block a user