Skip to content

Commit 0471b14

Browse files
committed
fix anisotropy usage with UnlitGraph
1 parent bd04f2e commit 0471b14

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Editor/Scripts/ShaderGraph/InternalShaderGraph/PBRGraphGUI.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ private void DrawProperties(Material targetMaterial, MaterialProperty[] properti
521521
{
522522
propertyList.RemoveAll(x => x.name.StartsWith("sheen", StringComparison.Ordinal));
523523
}
524-
if (targetMaterial.GetFloat("_ANISOTROPY") < 0.5f)
524+
if (!targetMaterial.HasProperty("_ANISOTROPY") || !(targetMaterial.GetFloat("_ANISOTROPY") > 0.5f))
525525
{
526526
propertyList.RemoveAll(x => x.name.StartsWith("anisotropy", StringComparison.Ordinal));
527527
}

0 commit comments

Comments
 (0)