mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 13:08:24 +01:00
217 lines
7.6 KiB
C#
217 lines
7.6 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 the clearcoat material layer.
|
|
/// Sourced from the 'KHR_materials_clearcoat' extension
|
|
/// </summary>
|
|
public partial class MaterialsClearcoatGltfMaterialExtension {
|
|
|
|
/// <summary>
|
|
/// Backing field for ClearcoatFactor.
|
|
/// </summary>
|
|
private float m_clearcoatFactor = 0F;
|
|
|
|
/// <summary>
|
|
/// Backing field for ClearcoatTexture.
|
|
/// </summary>
|
|
private TextureInfo m_clearcoatTexture;
|
|
|
|
/// <summary>
|
|
/// Backing field for ClearcoatRoughnessFactor.
|
|
/// </summary>
|
|
private float m_clearcoatRoughnessFactor = 0F;
|
|
|
|
/// <summary>
|
|
/// Backing field for ClearcoatRoughnessTexture.
|
|
/// </summary>
|
|
private TextureInfo m_clearcoatRoughnessTexture;
|
|
|
|
/// <summary>
|
|
/// Backing field for ClearcoatNormalTexture.
|
|
/// </summary>
|
|
private MaterialNormalTextureInfo m_clearcoatNormalTexture;
|
|
|
|
/// <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 clearcoat layer intensity.
|
|
/// </summary>
|
|
[System.Text.Json.Serialization.JsonPropertyNameAttribute("clearcoatFactor")]
|
|
public float ClearcoatFactor {
|
|
get {
|
|
return this.m_clearcoatFactor;
|
|
}
|
|
set {
|
|
if ((value < 0D)) {
|
|
throw new System.ArgumentOutOfRangeException("ClearcoatFactor", value, "Expected value to be greater than or equal to 0");
|
|
}
|
|
if ((value > 1D)) {
|
|
throw new System.ArgumentOutOfRangeException("ClearcoatFactor", value, "Expected value to be less than or equal to 1");
|
|
}
|
|
this.m_clearcoatFactor = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// The clearcoat layer intensity texture.
|
|
/// </summary>
|
|
[System.Text.Json.Serialization.JsonPropertyNameAttribute("clearcoatTexture")]
|
|
public TextureInfo ClearcoatTexture {
|
|
get {
|
|
return this.m_clearcoatTexture;
|
|
}
|
|
set {
|
|
this.m_clearcoatTexture = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// The clearcoat layer roughness.
|
|
/// </summary>
|
|
[System.Text.Json.Serialization.JsonPropertyNameAttribute("clearcoatRoughnessFactor")]
|
|
public float ClearcoatRoughnessFactor {
|
|
get {
|
|
return this.m_clearcoatRoughnessFactor;
|
|
}
|
|
set {
|
|
if ((value < 0D)) {
|
|
throw new System.ArgumentOutOfRangeException("ClearcoatRoughnessFactor", value, "Expected value to be greater than or equal to 0");
|
|
}
|
|
if ((value > 1D)) {
|
|
throw new System.ArgumentOutOfRangeException("ClearcoatRoughnessFactor", value, "Expected value to be less than or equal to 1");
|
|
}
|
|
this.m_clearcoatRoughnessFactor = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// The clearcoat layer roughness texture.
|
|
/// </summary>
|
|
[System.Text.Json.Serialization.JsonPropertyNameAttribute("clearcoatRoughnessTexture")]
|
|
public TextureInfo ClearcoatRoughnessTexture {
|
|
get {
|
|
return this.m_clearcoatRoughnessTexture;
|
|
}
|
|
set {
|
|
this.m_clearcoatRoughnessTexture = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// The clearcoat normal map texture.
|
|
/// </summary>
|
|
[System.Text.Json.Serialization.JsonPropertyNameAttribute("clearcoatNormalTexture")]
|
|
public MaterialNormalTextureInfo ClearcoatNormalTexture {
|
|
get {
|
|
return this.m_clearcoatNormalTexture;
|
|
}
|
|
set {
|
|
this.m_clearcoatNormalTexture = 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 ClearcoatFactor property should be serialized.
|
|
/// </summary>
|
|
public bool ShouldSerializeClearcoatFactor() {
|
|
return ((m_clearcoatFactor == 0F)
|
|
== false);
|
|
}
|
|
|
|
/// <summary>
|
|
/// This method is used to determine if the ClearcoatTexture property should be serialized.
|
|
/// </summary>
|
|
public bool ShouldSerializeClearcoatTexture() {
|
|
return ((m_clearcoatTexture == null)
|
|
== false);
|
|
}
|
|
|
|
/// <summary>
|
|
/// This method is used to determine if the ClearcoatRoughnessFactor property should be serialized.
|
|
/// </summary>
|
|
public bool ShouldSerializeClearcoatRoughnessFactor() {
|
|
return ((m_clearcoatRoughnessFactor == 0F)
|
|
== false);
|
|
}
|
|
|
|
/// <summary>
|
|
/// This method is used to determine if the ClearcoatRoughnessTexture property should be serialized.
|
|
/// </summary>
|
|
public bool ShouldSerializeClearcoatRoughnessTexture() {
|
|
return ((m_clearcoatRoughnessTexture == null)
|
|
== false);
|
|
}
|
|
|
|
/// <summary>
|
|
/// This method is used to determine if the ClearcoatNormalTexture property should be serialized.
|
|
/// </summary>
|
|
public bool ShouldSerializeClearcoatNormalTexture() {
|
|
return ((m_clearcoatNormalTexture == 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);
|
|
}
|
|
}
|
|
}
|