From 31a56f2c513b1d61fde64836fbd60caf891b7176 Mon Sep 17 00:00:00 2001 From: Marc Gilleron Date: Fri, 19 Aug 2022 21:33:52 +0100 Subject: [PATCH] Fix default lod material not applied correctly --- terrain/variable_lod/voxel_lod_terrain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terrain/variable_lod/voxel_lod_terrain.cpp b/terrain/variable_lod/voxel_lod_terrain.cpp index fc0bd2af..681692d2 100644 --- a/terrain/variable_lod/voxel_lod_terrain.cpp +++ b/terrain/variable_lod/voxel_lod_terrain.cpp @@ -318,7 +318,7 @@ void VoxelLodTerrain::_on_gi_mode_changed() { void VoxelLodTerrain::update_shader_material_pool_template() { Ref shader_material = _material; if (_material.is_null() && _mesher.is_valid()) { - Ref shader_material = _mesher->get_default_lod_material(); + shader_material = _mesher->get_default_lod_material(); } _shader_material_pool.set_template(shader_material); }