Skip to content

Commit

Permalink
Fix wrong property accessing in ConvertToSpeedTree()
Browse files Browse the repository at this point in the history
  • Loading branch information
hyunseok-yang committed Nov 21, 2024
1 parent bfd995d commit 826bf55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/Scripts/Tools/SDF/Util/SDF2Unity.Material.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public static void ConvertToSpeedTree(UE.Material target)
{
var existingTexture = target.GetTexture("_BaseMap");
var existingTextureScale = target.GetTextureScale("_BaseMap");
var existingColor = target.GetColor("_BaseColor");
var existingColor = target.GetColor("_Color");

target.shader = SpeedTreeShader;
target.SetTexture("_MainTex", existingTexture);
Expand Down

0 comments on commit 826bf55

Please sign in to comment.