diff options
author | clayjohn <claynjohn@gmail.com> | 2021-10-03 04:28:55 -0700 |
---|---|---|
committer | clayjohn <claynjohn@gmail.com> | 2021-10-28 22:02:23 -0700 |
commit | 1b2cd9f2519d54c0cf9cf58939f09d7a6834f292 (patch) | |
tree | b76e4e5aa4d28d78482a4b54b2a5aefb66450a2c /scene/resources/shader.cpp | |
parent | 93078089878296cca7548692fd2e472898379d1c (diff) |
Addition of FogVolumes, FogShaders, FogMaterial, and overhaul of VolumetricFog
Co-authored-by: Brian Semrau <brian.semrau@gmail.com>
Diffstat (limited to 'scene/resources/shader.cpp')
-rw-r--r-- | scene/resources/shader.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scene/resources/shader.cpp b/scene/resources/shader.cpp index 242e20f3b0..4ba8d4d494 100644 --- a/scene/resources/shader.cpp +++ b/scene/resources/shader.cpp @@ -49,6 +49,8 @@ void Shader::set_code(const String &p_code) { mode = MODE_PARTICLES; } else if (type == "sky") { mode = MODE_SKY; + } else if (type == "fog") { + mode = MODE_FOG; } else { mode = MODE_SPATIAL; } @@ -149,6 +151,7 @@ void Shader::_bind_methods() { BIND_ENUM_CONSTANT(MODE_CANVAS_ITEM); BIND_ENUM_CONSTANT(MODE_PARTICLES); BIND_ENUM_CONSTANT(MODE_SKY); + BIND_ENUM_CONSTANT(MODE_FOG); } Shader::Shader() { |