Skip to content

Commit

Permalink
Fix bug when loading unusual large normal maps (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
Garanas authored Jul 16, 2023
1 parent afc9bb4 commit 1ec07bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/Scripts/Ozone SCMAP Code/ScmapEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ void GenerateArrays()
if (Textures[i + 1].Normal == null)
continue;

if (Textures[i + 1].Normal.width != 1024 || Textures[i + 1].Normal.height != 1024)
if (Textures[i + 1].Normal.width != AlbedoSize || Textures[i + 1].Normal.height != AlbedoSize)
{
Textures[i + 1].Normal = TextureScale.Bilinear(Textures[i + 1].Normal, AlbedoSize, AlbedoSize);
}
Expand Down

0 comments on commit 1ec07bd

Please sign in to comment.