From 78581077f7eae7fbd1ad7a733a2720ec6a4f5dc2 Mon Sep 17 00:00:00 2001 From: Relintai Date: Thu, 8 Aug 2019 21:09:55 +0200 Subject: [PATCH] Added a new random ao channel. --- world/voxel_buffer.cpp | 1 + world/voxel_buffer.h | 1 + 2 files changed, 2 insertions(+) diff --git a/world/voxel_buffer.cpp b/world/voxel_buffer.cpp index 0bdf86c..66f3401 100644 --- a/world/voxel_buffer.cpp +++ b/world/voxel_buffer.cpp @@ -433,6 +433,7 @@ void VoxelBuffer::_bind_methods() { BIND_ENUM_CONSTANT(CHANNEL_LIGHT_COLOR_G); BIND_ENUM_CONSTANT(CHANNEL_LIGHT_COLOR_B); BIND_ENUM_CONSTANT(CHANNEL_AO); + BIND_ENUM_CONSTANT(CHANNEL_RANDOM_AO); BIND_ENUM_CONSTANT(CHANNEL_DATA1); BIND_ENUM_CONSTANT(CHANNEL_DATA2); BIND_ENUM_CONSTANT(MAX_CHANNELS); diff --git a/world/voxel_buffer.h b/world/voxel_buffer.h index 96b70c4..819b9a1 100644 --- a/world/voxel_buffer.h +++ b/world/voxel_buffer.h @@ -39,6 +39,7 @@ public: CHANNEL_LIGHT_COLOR_G, CHANNEL_LIGHT_COLOR_B, CHANNEL_AO, + CHANNEL_RANDOM_AO, CHANNEL_DATA1, CHANNEL_DATA2, // Arbitrary value, 8 should be enough. Tweak for your needs.