diff --git a/com.unity.render-pipelines.high-definition/CHANGELOG.md b/com.unity.render-pipelines.high-definition/CHANGELOG.md index 05fb3d4273c..38c525d8e6a 100644 --- a/com.unity.render-pipelines.high-definition/CHANGELOG.md +++ b/com.unity.render-pipelines.high-definition/CHANGELOG.md @@ -57,6 +57,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Fixed a warning because of a null texture in the lens flare pass. - Fixed a nullref when enabling raycount without ray tracing. - Fixed error thrown when layered lit material has an invalid material type. +- Fixed Normal Map assiignation when importing FBX Materials. ## [13.1.2] - 2021-11-05 diff --git a/com.unity.render-pipelines.high-definition/Editor/AssetProcessors/FBXMaterialDescriptionPostprocessor.cs b/com.unity.render-pipelines.high-definition/Editor/AssetProcessors/FBXMaterialDescriptionPostprocessor.cs index 2b2d5033cd8..0b2ab4e42d1 100644 --- a/com.unity.render-pipelines.high-definition/Editor/AssetProcessors/FBXMaterialDescriptionPostprocessor.cs +++ b/com.unity.render-pipelines.high-definition/Editor/AssetProcessors/FBXMaterialDescriptionPostprocessor.cs @@ -110,17 +110,17 @@ public void OnPreprocessMaterialDescription(MaterialDescription description, Mat if (description.TryGetProperty("Bump", out textureProperty) && textureProperty.texture != null) { - SetMaterialTextureProperty("_BumpMap", material, textureProperty); + SetMaterialTextureProperty("_NormalMap", material, textureProperty); if (description.TryGetProperty("BumpFactor", out floatProperty)) - material.SetFloat("_BumpScale", floatProperty); + material.SetFloat("_NormalScale", floatProperty); } else if (description.TryGetProperty("NormalMap", out textureProperty) && textureProperty.texture != null) { - SetMaterialTextureProperty("_BumpMap", material, textureProperty); + SetMaterialTextureProperty("_NormalMap", material, textureProperty); if (description.TryGetProperty("BumpFactor", out floatProperty)) - material.SetFloat("_BumpScale", floatProperty); + material.SetFloat("_NormalScale", floatProperty); } if (description.TryGetProperty("EmissiveColor", out textureProperty))