mirror of
https://github.com/Relintai/voxelman.git
synced 2025-03-10 18:13:24 +01:00
Fix 2 typos.
This commit is contained in:
parent
033fe750c0
commit
b6afad3024
@ -284,8 +284,8 @@ void VoxelMesher::_bake_colors(Ref<VoxelBuffer> buffer) {
|
|||||||
buffer->get_voxel(x, y, z, VoxelBuffer::CHANNEL_LIGHT_COLOR_G) / 255.0,
|
buffer->get_voxel(x, y, z, VoxelBuffer::CHANNEL_LIGHT_COLOR_G) / 255.0,
|
||||||
buffer->get_voxel(x, y, z, VoxelBuffer::CHANNEL_LIGHT_COLOR_B) / 255.0);
|
buffer->get_voxel(x, y, z, VoxelBuffer::CHANNEL_LIGHT_COLOR_B) / 255.0);
|
||||||
|
|
||||||
int ao = (buffer->get_voxel(x, y, z, VoxelBuffer::CHANNEL_AO) / 255.0) * _ao_strength;
|
float ao = (buffer->get_voxel(x, y, z, VoxelBuffer::CHANNEL_AO) / 255.0) * _ao_strength;
|
||||||
int rao = buffer->get_voxel(x, y, z, VoxelBuffer::CHANNEL_RANDOM_AO) / 255.0;
|
float rao = buffer->get_voxel(x, y, z, VoxelBuffer::CHANNEL_RANDOM_AO) / 255.0;
|
||||||
ao += rao;
|
ao += rao;
|
||||||
|
|
||||||
light.r += _base_light_value;
|
light.r += _base_light_value;
|
||||||
|
Loading…
Reference in New Issue
Block a user