| | 1 | | // <copyright file="ObjMaterial.cs" company="Jérémy Ansel"> |
| | 2 | | // Copyright (c) 2017, 2019 Jérémy Ansel |
| | 3 | | // </copyright> |
| | 4 | | // <license> |
| | 5 | | // Licensed under the MIT license. See LICENSE.txt |
| | 6 | | // </license> |
| | 7 | |
|
| | 8 | | namespace JeremyAnsel.Media.WavefrontObj |
| | 9 | | { |
| | 10 | | [System.Diagnostics.DebuggerDisplay("Material:{Name}")] |
| | 11 | | public class ObjMaterial |
| | 12 | | { |
| 801 | 13 | | public ObjMaterial() |
| | 14 | | { |
| 801 | 15 | | this.ReflectionMap = new ObjMaterialReflectionMap(); |
| | 16 | |
|
| 801 | 17 | | this.IlluminationModel = 2; |
| 801 | 18 | | this.DissolveFactor = 1.0f; |
| 801 | 19 | | this.Sharpness = 60; |
| 801 | 20 | | this.OpticalDensity = 1.0f; |
| 801 | 21 | | } |
| | 22 | |
|
| | 23 | | public ObjMaterial(string? name) |
| 192 | 24 | | : this() |
| | 25 | | { |
| 192 | 26 | | this.Name = name; |
| 192 | 27 | | } |
| | 28 | |
|
| 1245 | 29 | | public string? Name { get; set; } |
| | 30 | |
|
| 354 | 31 | | public ObjMaterialColor? AmbientColor { get; set; } |
| | 32 | |
|
| 318 | 33 | | public ObjMaterialColor? DiffuseColor { get; set; } |
| | 34 | |
|
| 318 | 35 | | public ObjMaterialColor? EmissiveColor { get; set; } |
| | 36 | |
|
| 318 | 37 | | public ObjMaterialColor? SpecularColor { get; set; } |
| | 38 | |
|
| 318 | 39 | | public ObjMaterialColor? TransmissionColor { get; set; } |
| | 40 | |
|
| 1005 | 41 | | public int IlluminationModel { get; set; } |
| | 42 | |
|
| 1014 | 43 | | public float DissolveFactor { get; set; } |
| | 44 | |
|
| 204 | 45 | | public bool IsHaloDissolve { get; set; } |
| | 46 | |
|
| 201 | 47 | | public float SpecularExponent { get; set; } |
| | 48 | |
|
| 1005 | 49 | | public int Sharpness { get; set; } |
| | 50 | |
|
| 1005 | 51 | | public float OpticalDensity { get; set; } |
| | 52 | |
|
| 210 | 53 | | public bool IsAntiAliasingEnabled { get; set; } |
| | 54 | |
|
| 744 | 55 | | public ObjMaterialMap? AmbientMap { get; set; } |
| | 56 | |
|
| 207 | 57 | | public ObjMaterialMap? DiffuseMap { get; set; } |
| | 58 | |
|
| 207 | 59 | | public ObjMaterialMap? EmissiveMap { get; set; } |
| | 60 | |
|
| 207 | 61 | | public ObjMaterialMap? SpecularMap { get; set; } |
| | 62 | |
|
| 207 | 63 | | public ObjMaterialMap? SpecularExponentMap { get; set; } |
| | 64 | |
|
| 207 | 65 | | public ObjMaterialMap? DissolveMap { get; set; } |
| | 66 | |
|
| 207 | 67 | | public ObjMaterialMap? DecalMap { get; set; } |
| | 68 | |
|
| 207 | 69 | | public ObjMaterialMap? DispMap { get; set; } |
| | 70 | |
|
| 207 | 71 | | public ObjMaterialMap? BumpMap { get; set; } |
| | 72 | |
|
| 2256 | 73 | | public ObjMaterialReflectionMap ReflectionMap { get; private set; } |
| | 74 | | } |
| | 75 | | } |
| | 76 | |
|