diff options
author | Juan Linietsky <reduzio@gmail.com> | 2017-05-31 20:16:38 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2017-05-31 20:29:56 -0300 |
commit | a134f58fb3e072a3453bd5e9286f90b4694c9766 (patch) | |
tree | daa9f4130a90e8a1604835e1ae564db128a06a48 /servers | |
parent | a802bd91d000647a40e401c14c0d323209bc6446 (diff) |
rewritten PBR implementation to make it friendlier with Blender
Diffstat (limited to 'servers')
-rw-r--r-- | servers/visual/shader_types.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/servers/visual/shader_types.cpp b/servers/visual/shader_types.cpp index 8d72ee3f34..5bacc2ec51 100644 --- a/servers/visual/shader_types.cpp +++ b/servers/visual/shader_types.cpp @@ -91,7 +91,8 @@ ShaderTypes::ShaderTypes() { shader_modes[VS::SHADER_SPATIAL].functions["fragment"]["NORMAL"] = ShaderLanguage::TYPE_VEC3; shader_modes[VS::SHADER_SPATIAL].functions["fragment"]["ALBEDO"] = ShaderLanguage::TYPE_VEC3; shader_modes[VS::SHADER_SPATIAL].functions["fragment"]["ALPHA"] = ShaderLanguage::TYPE_FLOAT; - shader_modes[VS::SHADER_SPATIAL].functions["fragment"]["SPECULAR"] = ShaderLanguage::TYPE_VEC3; + shader_modes[VS::SHADER_SPATIAL].functions["fragment"]["METALLIC"] = ShaderLanguage::TYPE_FLOAT; + shader_modes[VS::SHADER_SPATIAL].functions["fragment"]["SPECULAR"] = ShaderLanguage::TYPE_FLOAT; shader_modes[VS::SHADER_SPATIAL].functions["fragment"]["ROUGHNESS"] = ShaderLanguage::TYPE_FLOAT; shader_modes[VS::SHADER_SPATIAL].functions["fragment"]["RIM"] = ShaderLanguage::TYPE_FLOAT; shader_modes[VS::SHADER_SPATIAL].functions["fragment"]["RIM_TINT"] = ShaderLanguage::TYPE_FLOAT; |