Skip to content

Commit

Permalink
Merge pull request #407 from rferrese/RoughnessFactor
Browse files Browse the repository at this point in the history
Add Roughness float values to MetalRoughMap.cs
  • Loading branch information
sbtron authored Apr 22, 2019
2 parents c5b4a79 + 1268354 commit 15eaedd
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@ public override int MetallicRoughnessXTexCoord
set { return; }
}

public override double RoughnessFactor
{
get { return _material.GetFloat("_Glossiness"); }
set { _material.SetFloat("_Glossiness", (float)value); }
}

public override IUniformMap Clone()
{
var copy = new MetalRoughMap(new Material(_material));
Expand Down

0 comments on commit 15eaedd

Please sign in to comment.