Skip to content

Commit

Permalink
added missing material.getfloat("_RuntimeCreatedNormalMap" == 1)
Browse files Browse the repository at this point in the history
  • Loading branch information
pfcDorn committed Jan 17, 2024
1 parent fe9c2b4 commit 01b5e4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Runtime/Scripts/SceneExporter/ExporterMaterials.cs
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ private void ExportTextureTransform(TextureInfo def, Material mat, string texNam
var info = new NormalTextureInfo();
TextureExportSettings exportSettings = default;

if (material.HasFloat("_RuntimeCreatedNormalMap"))
if (material.HasFloat("_NormalMapFormatXYZ") && material.GetFloat("_NormalMapFormatXYZ") == 1)
{
exportSettings.linear = true;
exportSettings.isValid = true;
Expand Down

0 comments on commit 01b5e4c

Please sign in to comment.