57 lines
2.0 KiB
C++
57 lines
2.0 KiB
C++
#include "voxel_string_names.h"
|
|
|
|
namespace zylann::voxel {
|
|
|
|
VoxelStringNames *VoxelStringNames::g_singleton;
|
|
|
|
void VoxelStringNames::create_singleton() {
|
|
CRASH_COND(g_singleton != nullptr);
|
|
g_singleton = memnew(VoxelStringNames);
|
|
}
|
|
|
|
void VoxelStringNames::destroy_singleton() {
|
|
CRASH_COND(g_singleton == nullptr);
|
|
memdelete(g_singleton);
|
|
g_singleton = nullptr;
|
|
}
|
|
|
|
const VoxelStringNames &VoxelStringNames::get_singleton() {
|
|
CRASH_COND(g_singleton == nullptr);
|
|
return *g_singleton;
|
|
}
|
|
|
|
VoxelStringNames::VoxelStringNames() {
|
|
_emerge_block = StaticCString::create("_emerge_block");
|
|
_immerge_block = StaticCString::create("_immerge_block");
|
|
_generate_block = StaticCString::create("_generate_block");
|
|
_get_used_channels_mask = StaticCString::create("_get_used_channels_mask");
|
|
|
|
block_loaded = StaticCString::create("block_loaded");
|
|
block_unloaded = StaticCString::create("block_unloaded");
|
|
|
|
store_colors_in_texture = StaticCString::create("store_colors_in_texture");
|
|
scale = StaticCString::create("scale");
|
|
enable_baked_lighting = StaticCString::create("enable_baked_lighting");
|
|
pivot_mode = StaticCString::create("pivot_mode");
|
|
|
|
u_transition_mask = StaticCString::create("u_transition_mask");
|
|
u_block_local_transform = StaticCString::create("u_block_local_transform");
|
|
u_lod_fade = StaticCString::create("u_lod_fade");
|
|
|
|
voxel_normalmap_atlas = StaticCString::create("voxel_normalmap_atlas");
|
|
voxel_normalmap_lookup = StaticCString::create("voxel_normalmap_lookup");
|
|
|
|
u_voxel_normalmap_atlas = StaticCString::create("u_voxel_normalmap_atlas");
|
|
u_voxel_cell_lookup = StaticCString::create("u_voxel_cell_lookup");
|
|
u_voxel_cell_size = StaticCString::create("u_voxel_cell_size");
|
|
u_voxel_block_size = StaticCString::create("u_voxel_block_size");
|
|
u_voxel_virtual_texture_fade = StaticCString::create("u_voxel_virtual_texture_fade");
|
|
u_voxel_virtual_texture_tile_size = StaticCString::create("u_voxel_virtual_texture_tile_size");
|
|
|
|
#ifdef DEBUG_ENABLED
|
|
_voxel_debug_vt_position = StaticCString::create("_voxel_debug_vt_position");
|
|
#endif
|
|
}
|
|
|
|
} // namespace zylann::voxel
|