Skip to content

Commit

Permalink
[Obj] added support for emissive color maps "map_Ke"
Browse files Browse the repository at this point in the history
  • Loading branch information
luithefirst committed Mar 13, 2024
1 parent 0f870bf commit a34a795
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Aardvark.Data.Wavefront/MtlParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ public static List<WavefrontMaterial> Load(Stream stream, Encoding encoding, str
{ new Text("map_Kd"), (s, a) => s.SetAttribute(WavefrontMaterial.Property.DiffuseColorMap, Primitives.ParseMap(a, s.BaseDir)) },
{ new Text("map_Ks"), (s, a) => s.SetAttribute(WavefrontMaterial.Property.SpecularColorMap, Primitives.ParseMap(a, s.BaseDir)) },
{ new Text("map_Kn"), (s, a) => s.SetAttribute(WavefrontMaterial.Property.NormalMap, Primitives.ParseMap(a, s.BaseDir)) },
{ new Text("map_Ke"), (s, a) => s.SetAttribute(WavefrontMaterial.Property.EmissiveColorMap, Primitives.ParseMap(a, s.BaseDir)) },
{ new Text("map_Ns"), (s, a) => s.SetAttribute(WavefrontMaterial.Property.SpecularExponentMap, Primitives.ParseMap(a, s.BaseDir)) },
{ new Text("map_d"), (s, a) => s.SetAttribute(WavefrontMaterial.Property.OpacityMap, Primitives.ParseMap(a, s.BaseDir)) },
{ new Text("decal"), (s, a) => s.SetAttribute(WavefrontMaterial.Property.DecalMap, Primitives.ParseMap(a, s.BaseDir)) },
Expand Down
1 change: 1 addition & 0 deletions src/Aardvark.Data.Wavefront/WavefrontMaterial.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public static class Property
public static readonly Symbol AmbientColorMap = "AmbientColorMap";
public static readonly Symbol DiffuseColorMap = "DiffuseColorMap";
public static readonly Symbol SpecularColorMap = "SpecularColorMap";
public static readonly Symbol EmissiveColorMap = "EmissiveColorMap";
public static readonly Symbol SpecularExponentMap = "SpecularExponentMap";
public static readonly Symbol OpacityMap = "OpacityMap";
public static readonly Symbol DecalMap = "DecalMap";
Expand Down

0 comments on commit a34a795

Please sign in to comment.