Merge pull request #88 from HK-SHAO/master

Fix the voxels in blocky_game cannot be displayed normally
master
Marc 2022-01-15 18:04:29 +01:00 committed by GitHub
commit 4f957ba862
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ func _get_used_channels_mask() -> int:
func _generate_block(buffer: VoxelBuffer, origin_in_voxels: Vector3, lod: int):
# Saves from this demo used 8-bit, which is no longer the default
buffer.set_channel_depth(_CHANNEL, VoxelBuffer.DEPTH_8_BIT)
# buffer.set_channel_depth(_CHANNEL, VoxelBuffer.DEPTH_8_BIT)
# Assuming input is cubic in our use case (it doesn't have to be!)
var block_size := int(buffer.get_size().x)