summaryrefslogtreecommitdiff
path: root/servers
diff options
context:
space:
mode:
authorJFonS <joan.fonssanchez@gmail.com>2018-06-21 00:12:12 +0200
committerJFonS <joan.fonssanchez@gmail.com>2018-06-21 00:12:12 +0200
commitc8cf71753c4f971c25924addbfe79356e7d2ec4e (patch)
tree0821b1e63b33543b8740b980eb4036c7ec75159e /servers
parent0a1c1c660fc6aa0689816e85f2b6791c225c6d63 (diff)
Add render mode to ensure correct normals when using non-uniform scaling
Diffstat (limited to 'servers')
-rw-r--r--servers/visual/shader_types.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/servers/visual/shader_types.cpp b/servers/visual/shader_types.cpp
index 95193f7a8f..a92e1b06d2 100644
--- a/servers/visual/shader_types.cpp
+++ b/servers/visual/shader_types.cpp
@@ -172,6 +172,7 @@ 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("ensure_correct_normals");
shader_modes[VS::SHADER_SPATIAL].modes.insert("shadows_disabled");