1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-02 16:48:55 +00:00

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

@@ -881,6 +881,8 @@ void RasterizerStorageRD::shader_set_code(RID p_shader, const String &p_code) {
new_type = SHADER_TYPE_PARTICLES;
else if (mode_string == "spatial")
new_type = SHADER_TYPE_3D;
else if (mode_string == "sky")
new_type = SHADER_TYPE_SKY;
else
new_type = SHADER_TYPE_MAX;