| | 1 | | // <copyright file="ObjMaterialMap.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 Map:{FileName}")] |
| | 11 | | public class ObjMaterialMap |
| | 12 | | { |
| 417 | 13 | | public ObjMaterialMap() |
| | 14 | | { |
| 417 | 15 | | this.IsHorizontalBlendingEnabled = true; |
| 417 | 16 | | this.IsVerticalBlendingEnabled = true; |
| 417 | 17 | | this.ScalarChannel = ObjMapChannel.Luminance; |
| 417 | 18 | | this.ModifierBase = 0.0f; |
| 417 | 19 | | this.ModifierGain = 1.0f; |
| 417 | 20 | | this.Offset = new ObjVector3(0.0f, 0.0f, 0.0f); |
| 417 | 21 | | this.Scale = new ObjVector3(1.0f, 1.0f, 1.0f); |
| 417 | 22 | | this.Turbulence = new ObjVector3(0.0f, 0.0f, 0.0f); |
| 417 | 23 | | } |
| | 24 | |
|
| | 25 | | public ObjMaterialMap(string? fileName) |
| 99 | 26 | | :this() |
| | 27 | | { |
| 99 | 28 | | this.FileName = fileName; |
| 99 | 29 | | } |
| | 30 | |
|
| 456 | 31 | | public string? FileName { get; set; } |
| | 32 | |
|
| 534 | 33 | | public bool IsHorizontalBlendingEnabled { get; set; } |
| | 34 | |
|
| 534 | 35 | | public bool IsVerticalBlendingEnabled { get; set; } |
| | 36 | |
|
| 114 | 37 | | public float BumpMultiplier { get; set; } |
| | 38 | |
|
| 114 | 39 | | public float Boost { get; set; } |
| | 40 | |
|
| 114 | 41 | | public bool IsColorCorrectionEnabled { get; set; } |
| | 42 | |
|
| 114 | 43 | | public bool IsClampingEnabled { get; set; } |
| | 44 | |
|
| 591 | 45 | | public ObjMapChannel ScalarChannel { get; set; } |
| | 46 | |
|
| 534 | 47 | | public float ModifierBase { get; set; } |
| | 48 | |
|
| 531 | 49 | | public float ModifierGain { get; set; } |
| | 50 | |
|
| 561 | 51 | | public ObjVector3 Offset { get; set; } |
| | 52 | |
|
| 561 | 53 | | public ObjVector3 Scale { get; set; } |
| | 54 | |
|
| 561 | 55 | | public ObjVector3 Turbulence { get; set; } |
| | 56 | |
|
| 114 | 57 | | public int TextureResolution { get; set; } |
| | 58 | | } |
| | 59 | | } |
| | 60 | |
|