mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 13:08:24 +01:00
246 lines
8.8 KiB
C#
246 lines
8.8 KiB
C#
//------------------------------------------------------------------------------
|
|
// <auto-generated>
|
|
// This code was generated by a tool.
|
|
//
|
|
// Changes to this file may cause incorrect behavior and will be lost if
|
|
// the code is regenerated.
|
|
// </auto-generated>
|
|
//------------------------------------------------------------------------------
|
|
|
|
namespace Brutal.GltfApi {
|
|
using System.Linq;
|
|
using System.Runtime.Serialization;
|
|
using System.Text.Json.Serialization;
|
|
|
|
|
|
/// <summary>
|
|
/// Object part of the GLTF file schema
|
|
/// glTF extension that defines an iridescence effect.
|
|
/// Sourced from the 'KHR_materials_iridescence' extension
|
|
/// </summary>
|
|
public partial class MaterialsIridescenceGltfMaterialExtension {
|
|
|
|
/// <summary>
|
|
/// Backing field for IridescenceFactor.
|
|
/// </summary>
|
|
private float m_iridescenceFactor = 0F;
|
|
|
|
/// <summary>
|
|
/// Backing field for IridescenceTexture.
|
|
/// </summary>
|
|
private TextureInfo m_iridescenceTexture;
|
|
|
|
/// <summary>
|
|
/// Backing field for IridescenceIor.
|
|
/// </summary>
|
|
private float m_iridescenceIor = 1.3F;
|
|
|
|
/// <summary>
|
|
/// Backing field for IridescenceThicknessMinimum.
|
|
/// </summary>
|
|
private float m_iridescenceThicknessMinimum = 100F;
|
|
|
|
/// <summary>
|
|
/// Backing field for IridescenceThicknessMaximum.
|
|
/// </summary>
|
|
private float m_iridescenceThicknessMaximum = 400F;
|
|
|
|
/// <summary>
|
|
/// Backing field for IridescenceThicknessTexture.
|
|
/// </summary>
|
|
private TextureInfo m_iridescenceThicknessTexture;
|
|
|
|
/// <summary>
|
|
/// Backing field for Extensions.
|
|
/// </summary>
|
|
private System.Collections.Generic.Dictionary<string, object> m_extensions;
|
|
|
|
/// <summary>
|
|
/// Backing field for Extras.
|
|
/// </summary>
|
|
private Extras m_extras;
|
|
|
|
/// <summary>
|
|
/// The iridescence intensity factor.
|
|
/// </summary>
|
|
[System.Text.Json.Serialization.JsonPropertyNameAttribute("iridescenceFactor")]
|
|
public float IridescenceFactor {
|
|
get {
|
|
return this.m_iridescenceFactor;
|
|
}
|
|
set {
|
|
if ((value < 0D)) {
|
|
throw new System.ArgumentOutOfRangeException("IridescenceFactor", value, "Expected value to be greater than or equal to 0");
|
|
}
|
|
if ((value > 1D)) {
|
|
throw new System.ArgumentOutOfRangeException("IridescenceFactor", value, "Expected value to be less than or equal to 1");
|
|
}
|
|
this.m_iridescenceFactor = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// The iridescence intensity texture.
|
|
/// </summary>
|
|
[System.Text.Json.Serialization.JsonPropertyNameAttribute("iridescenceTexture")]
|
|
public TextureInfo IridescenceTexture {
|
|
get {
|
|
return this.m_iridescenceTexture;
|
|
}
|
|
set {
|
|
this.m_iridescenceTexture = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// The index of refraction of the dielectric thin-film layer.
|
|
/// </summary>
|
|
[System.Text.Json.Serialization.JsonPropertyNameAttribute("iridescenceIor")]
|
|
public float IridescenceIor {
|
|
get {
|
|
return this.m_iridescenceIor;
|
|
}
|
|
set {
|
|
if ((value < 1D)) {
|
|
throw new System.ArgumentOutOfRangeException("IridescenceIor", value, "Expected value to be greater than or equal to 1");
|
|
}
|
|
this.m_iridescenceIor = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// The minimum thickness of the thin-film layer given in nanometers.
|
|
/// </summary>
|
|
[System.Text.Json.Serialization.JsonPropertyNameAttribute("iridescenceThicknessMinimum")]
|
|
public float IridescenceThicknessMinimum {
|
|
get {
|
|
return this.m_iridescenceThicknessMinimum;
|
|
}
|
|
set {
|
|
if ((value < 0D)) {
|
|
throw new System.ArgumentOutOfRangeException("IridescenceThicknessMinimum", value, "Expected value to be greater than or equal to 0");
|
|
}
|
|
this.m_iridescenceThicknessMinimum = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// The maximum thickness of the thin-film layer given in nanometers.
|
|
/// </summary>
|
|
[System.Text.Json.Serialization.JsonPropertyNameAttribute("iridescenceThicknessMaximum")]
|
|
public float IridescenceThicknessMaximum {
|
|
get {
|
|
return this.m_iridescenceThicknessMaximum;
|
|
}
|
|
set {
|
|
if ((value < 0D)) {
|
|
throw new System.ArgumentOutOfRangeException("IridescenceThicknessMaximum", value, "Expected value to be greater than or equal to 0");
|
|
}
|
|
this.m_iridescenceThicknessMaximum = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// The thickness texture of the thin-film layer.
|
|
/// </summary>
|
|
[System.Text.Json.Serialization.JsonPropertyNameAttribute("iridescenceThicknessTexture")]
|
|
public TextureInfo IridescenceThicknessTexture {
|
|
get {
|
|
return this.m_iridescenceThicknessTexture;
|
|
}
|
|
set {
|
|
this.m_iridescenceThicknessTexture = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// JSON object with extension-specific objects.
|
|
/// </summary>
|
|
[System.Text.Json.Serialization.JsonPropertyNameAttribute("extensions")]
|
|
public System.Collections.Generic.Dictionary<string, object> Extensions {
|
|
get {
|
|
return this.m_extensions;
|
|
}
|
|
set {
|
|
this.m_extensions = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Application-specific data.
|
|
/// </summary>
|
|
[System.Text.Json.Serialization.JsonPropertyNameAttribute("extras")]
|
|
public Extras Extras {
|
|
get {
|
|
return this.m_extras;
|
|
}
|
|
set {
|
|
this.m_extras = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// This method is used to determine if the IridescenceFactor property should be serialized.
|
|
/// </summary>
|
|
public bool ShouldSerializeIridescenceFactor() {
|
|
return ((m_iridescenceFactor == 0F)
|
|
== false);
|
|
}
|
|
|
|
/// <summary>
|
|
/// This method is used to determine if the IridescenceTexture property should be serialized.
|
|
/// </summary>
|
|
public bool ShouldSerializeIridescenceTexture() {
|
|
return ((m_iridescenceTexture == null)
|
|
== false);
|
|
}
|
|
|
|
/// <summary>
|
|
/// This method is used to determine if the IridescenceIor property should be serialized.
|
|
/// </summary>
|
|
public bool ShouldSerializeIridescenceIor() {
|
|
return ((m_iridescenceIor == 1.3F)
|
|
== false);
|
|
}
|
|
|
|
/// <summary>
|
|
/// This method is used to determine if the IridescenceThicknessMinimum property should be serialized.
|
|
/// </summary>
|
|
public bool ShouldSerializeIridescenceThicknessMinimum() {
|
|
return ((m_iridescenceThicknessMinimum == 100F)
|
|
== false);
|
|
}
|
|
|
|
/// <summary>
|
|
/// This method is used to determine if the IridescenceThicknessMaximum property should be serialized.
|
|
/// </summary>
|
|
public bool ShouldSerializeIridescenceThicknessMaximum() {
|
|
return ((m_iridescenceThicknessMaximum == 400F)
|
|
== false);
|
|
}
|
|
|
|
/// <summary>
|
|
/// This method is used to determine if the IridescenceThicknessTexture property should be serialized.
|
|
/// </summary>
|
|
public bool ShouldSerializeIridescenceThicknessTexture() {
|
|
return ((m_iridescenceThicknessTexture == null)
|
|
== false);
|
|
}
|
|
|
|
/// <summary>
|
|
/// This method is used to determine if the Extensions property should be serialized.
|
|
/// </summary>
|
|
public bool ShouldSerializeExtensions() {
|
|
return ((m_extensions == null)
|
|
== false);
|
|
}
|
|
|
|
/// <summary>
|
|
/// This method is used to determine if the Extras property should be serialized.
|
|
/// </summary>
|
|
public bool ShouldSerializeExtras() {
|
|
return ((m_extras == null)
|
|
== false);
|
|
}
|
|
}
|
|
}
|