Fix unused variables
parent
34b17ad162
commit
58185147e3
|
@ -341,7 +341,7 @@ float VoxelToolLodTerrain::get_voxel_f_interpolated(Vector3 position) const {
|
|||
[terrain, channel](Vector3i ipos) {
|
||||
VoxelSingleValue defval;
|
||||
defval.f = 1.f;
|
||||
VoxelSingleValue value = terrain->get_voxel(ipos, VoxelBufferInternal::CHANNEL_SDF, defval);
|
||||
VoxelSingleValue value = terrain->get_voxel(ipos, channel, defval);
|
||||
return value.f;
|
||||
},
|
||||
position);
|
||||
|
|
|
@ -392,9 +392,8 @@ void VoxelGraphRuntime::generate_set(State &state, Span<float> in_x, Span<float>
|
|||
CRASH_COND(!(in_x.size() == in_y.size() && in_y.size() == in_z.size()));
|
||||
#endif
|
||||
|
||||
const unsigned int buffer_size = in_x.size();
|
||||
|
||||
#ifdef TOOLS_ENABLED
|
||||
const unsigned int buffer_size = in_x.size();
|
||||
ERR_FAIL_COND(state.buffers.size() < _program.buffer_count);
|
||||
ERR_FAIL_COND(state.buffers.size() == 0);
|
||||
ERR_FAIL_COND(state.buffer_size < buffer_size);
|
||||
|
|
|
@ -36,7 +36,7 @@ VoxelGraphRuntime::CompilationResult generate_shader(const ProgramGraph &p_graph
|
|||
std::vector<uint32_t> terminal_nodes;
|
||||
|
||||
// Only getting SDF for now, as this is the first use case I want to test this feature with
|
||||
expanded_graph.for_each_node_const([&terminal_nodes, &type_db](const ProgramGraph::Node &node) {
|
||||
expanded_graph.for_each_node_const([&terminal_nodes](const ProgramGraph::Node &node) {
|
||||
if (node.type_id == VoxelGeneratorGraph::NODE_OUTPUT_SDF) {
|
||||
terminal_nodes.push_back(node.id);
|
||||
}
|
||||
|
|
|
@ -15,8 +15,7 @@ const uint8_t FORMAT_VERSION = 3;
|
|||
|
||||
// Version 2 is like 3, but does not include any format information
|
||||
const uint8_t FORMAT_VERSION_LEGACY_2 = 2;
|
||||
|
||||
const uint8_t FORMAT_VERSION_LEGACY_1 = 1;
|
||||
//const uint8_t FORMAT_VERSION_LEGACY_1 = 1;
|
||||
|
||||
const char *FORMAT_REGION_MAGIC = "VXR_";
|
||||
const uint32_t MAGIC_AND_VERSION_SIZE = 4 + 1;
|
||||
|
|
Loading…
Reference in New Issue