Skip to content

Commit

Permalink
Fix wrong default values for indices and weights
Browse files Browse the repository at this point in the history
  • Loading branch information
Zylann committed Nov 2, 2023
1 parent a452599 commit 91d9c31
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion storage/voxel_buffer_internal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,12 @@ uint64_t g_default_values[VoxelBufferInternal::MAX_CHANNELS] = {
// should be possible to cast it back to the actual type with no loss of data, as long as all bits are preserved.
uint16_t(snorm_to_s16(1.f)), // SDF

0, // COLOR

encode_indices_to_packed_u16(0, 1, 2, 3), // INDICES
encode_weights_to_packed_u16_lossy(255, 0, 0, 0), // WEIGHTS
0, 0, 0, 0 //

0, 0, 0 //
};
}

Expand Down

0 comments on commit 91d9c31

Please sign in to comment.