mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 15:21:56 -05:00
Add shader based background mode
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user