Fix default lod material not applied correctly
This commit is contained in:
parent
7997e89d46
commit
31a56f2c51
@ -318,7 +318,7 @@ void VoxelLodTerrain::_on_gi_mode_changed() {
|
||||
void VoxelLodTerrain::update_shader_material_pool_template() {
|
||||
Ref<ShaderMaterial> shader_material = _material;
|
||||
if (_material.is_null() && _mesher.is_valid()) {
|
||||
Ref<ShaderMaterial> shader_material = _mesher->get_default_lod_material();
|
||||
shader_material = _mesher->get_default_lod_material();
|
||||
}
|
||||
_shader_material_pool.set_template(shader_material);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user