summaryrefslogtreecommitdiffstats
path: root/scene/resources/3d/fog_material.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scene/resources/3d/fog_material.cpp')
-rw-r--r--scene/resources/3d/fog_material.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/resources/3d/fog_material.cpp b/scene/resources/3d/fog_material.cpp
index 92246b50db..6c6e98b50d 100644
--- a/scene/resources/3d/fog_material.cpp
+++ b/scene/resources/3d/fog_material.cpp
@@ -168,6 +168,8 @@ void fog() {
}
FogMaterial::FogMaterial() {
+ _set_material(RS::get_singleton()->material_create());
+
set_density(1.0);
set_albedo(Color(1, 1, 1, 1));
set_emission(Color(0, 0, 0, 1));