Add shader based background mode

This commit is contained in:
Bastiaan Olij
2019-09-15 19:58:38 +10:00
committed by clayjohn
parent 1a532d53cc
commit c3fee7ba6c
26 changed files with 871 additions and 67 deletions

View File

@@ -48,6 +48,8 @@ void Shader::set_code(const String &p_code) {
mode = MODE_CANVAS_ITEM;
} else if (type == "particles") {
mode = MODE_PARTICLES;
} else if (type == "sky") {
mode = MODE_SKY;
} else {
mode = MODE_SPATIAL;
}
@@ -158,6 +160,7 @@ void Shader::_bind_methods() {
BIND_ENUM_CONSTANT(MODE_SPATIAL);
BIND_ENUM_CONSTANT(MODE_CANVAS_ITEM);
BIND_ENUM_CONSTANT(MODE_PARTICLES);
BIND_ENUM_CONSTANT(MODE_SKY);
}
Shader::Shader() {