summaryrefslogtreecommitdiff
path: root/servers
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-07-04 15:09:59 +0200
committerGitHub <noreply@github.com>2018-07-04 15:09:59 +0200
commit92bfde531cea21555dc74ad928a79120fbc9c34d (patch)
treee0ce4fbb126641eeff7dbba7a448dea5881213f4 /servers
parentdb546732cf5f7b367b88c9008c74f18602167230 (diff)
parentc8cf71753c4f971c25924addbfe79356e7d2ec4e (diff)
Merge pull request #19786 from JFonS/correct_normal_scaling
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");