From 407c6d3a9cee234fe283b01800ffcfdf7893c898 Mon Sep 17 00:00:00 2001 From: Pablo Escobar Date: Sun, 4 Oct 2020 04:16:16 +0200 Subject: [PATCH] Add METALLIC to light() built-ins (cherry picked from commit 1300fc7307b7a9a29055c60ff381af03f7a050a0) --- servers/visual/shader_types.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/servers/visual/shader_types.cpp b/servers/visual/shader_types.cpp index 6910bd17b02..a4962badfce 100644 --- a/servers/visual/shader_types.cpp +++ b/servers/visual/shader_types.cpp @@ -145,6 +145,7 @@ ShaderTypes::ShaderTypes() { shader_modes[VS::SHADER_SPATIAL].functions["light"].built_ins["ATTENUATION"] = constt(ShaderLanguage::TYPE_VEC3); shader_modes[VS::SHADER_SPATIAL].functions["light"].built_ins["ALBEDO"] = constt(ShaderLanguage::TYPE_VEC3); shader_modes[VS::SHADER_SPATIAL].functions["light"].built_ins["TRANSMISSION"] = constt(ShaderLanguage::TYPE_VEC3); + shader_modes[VS::SHADER_SPATIAL].functions["light"].built_ins["METALLIC"] = constt(ShaderLanguage::TYPE_FLOAT); shader_modes[VS::SHADER_SPATIAL].functions["light"].built_ins["ROUGHNESS"] = constt(ShaderLanguage::TYPE_FLOAT); shader_modes[VS::SHADER_SPATIAL].functions["light"].built_ins["DIFFUSE_LIGHT"] = ShaderLanguage::TYPE_VEC3; shader_modes[VS::SHADER_SPATIAL].functions["light"].built_ins["SPECULAR_LIGHT"] = ShaderLanguage::TYPE_VEC3;