Skip to content

Commit

Permalink
Merge pull request KhronosGroup#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 57f42a2 + cb9cd03 commit 84b6ad7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Scripts/UniformMaps/MetalRoughMap.cs
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 84b6ad7

Please sign in to comment.