diff options
author | Bastiaan Olij <mux213@gmail.com> | 2019-09-15 19:58:38 +1000 |
---|---|---|
committer | clayjohn <claynjohn@gmail.com> | 2020-03-19 18:30:39 -0700 |
commit | c3fee7ba6cdefd285255b9e1198bc1fdf585b1ac (patch) | |
tree | b198d6c7473eed95130b09c991686e2f20540864 /drivers/gles2/rasterizer_storage_gles2.cpp | |
parent | 1a532d53ccfd11cae7efdda1d406fd26da5cdb1e (diff) |
Add shader based background mode
Diffstat (limited to 'drivers/gles2/rasterizer_storage_gles2.cpp')
-rw-r--r-- | drivers/gles2/rasterizer_storage_gles2.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gles2/rasterizer_storage_gles2.cpp b/drivers/gles2/rasterizer_storage_gles2.cpp index 0f5452effc..f76c7da8e1 100644 --- a/drivers/gles2/rasterizer_storage_gles2.cpp +++ b/drivers/gles2/rasterizer_storage_gles2.cpp @@ -1427,6 +1427,8 @@ void RasterizerStorageGLES2::shader_set_code(RID p_shader, const String &p_code) mode = VS::SHADER_CANVAS_ITEM; else if (mode_string == "particles") mode = VS::SHADER_PARTICLES; + else if (mode_string == "sky") + mode = VS::SHADER_SKY; else mode = VS::SHADER_SPATIAL; |