From c8cf71753c4f971c25924addbfe79356e7d2ec4e Mon Sep 17 00:00:00 2001 From: JFonS Date: Thu, 21 Jun 2018 00:12:12 +0200 Subject: Add render mode to ensure correct normals when using non-uniform scaling --- servers/visual/shader_types.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'servers/visual') 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"); -- cgit v1.2.3