summaryrefslogtreecommitdiff
path: root/servers
diff options
context:
space:
mode:
authorJFonS <joan.fonssanchez@gmail.com>2018-03-29 18:46:42 +0200
committerJFonS <joan.fonssanchez@gmail.com>2018-03-29 18:46:42 +0200
commit9c307d4b6c4bf4dc70835e7539158db5922b0d2c (patch)
tree87953de83eb14138d80d284ec616f05b58653cd7 /servers
parent4b4ed9b72454dea13bd5f0935806519e67f13fbc (diff)
Added flag on SpatialMaterial to disable shadows
Diffstat (limited to 'servers')
-rw-r--r--servers/visual/shader_types.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/servers/visual/shader_types.cpp b/servers/visual/shader_types.cpp
index 9042649337..6370e1a515 100644
--- a/servers/visual/shader_types.cpp
+++ b/servers/visual/shader_types.cpp
@@ -173,6 +173,8 @@ ShaderTypes::ShaderTypes() {
shader_modes[VS::SHADER_SPATIAL].modes.insert("skip_vertex_transform");
shader_modes[VS::SHADER_SPATIAL].modes.insert("world_vertex_coords");
+ shader_modes[VS::SHADER_SPATIAL].modes.insert("shadows_disabled");
+
shader_modes[VS::SHADER_SPATIAL].modes.insert("vertex_lighting");
/************ CANVAS ITEM **************************/