brutal/Brutal.Gltf/GltfApi/GeneratedSchema/MaterialsAnisotropyGltfMaterialExtension.gen.cs
Rian Drake b578433e37 first
2026-10-15 17:10:50 +13:00

159 lines
5.3 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 anisotropy.
/// Sourced from the 'KHR_materials_anisotropy' extension
/// </summary>
public partial class MaterialsAnisotropyGltfMaterialExtension {
/// <summary>
/// Backing field for AnisotropyStrength.
/// </summary>
private float m_anisotropyStrength = 0F;
/// <summary>
/// Backing field for AnisotropyRotation.
/// </summary>
private float m_anisotropyRotation = 0F;
/// <summary>
/// Backing field for AnisotropyTexture.
/// </summary>
private TextureInfo m_anisotropyTexture;
/// <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 anisotropy strength.
/// </summary>
[System.Text.Json.Serialization.JsonPropertyNameAttribute("anisotropyStrength")]
public float AnisotropyStrength {
get {
return this.m_anisotropyStrength;
}
set {
if ((value < 0D)) {
throw new System.ArgumentOutOfRangeException("AnisotropyStrength", value, "Expected value to be greater than or equal to 0");
}
if ((value > 1D)) {
throw new System.ArgumentOutOfRangeException("AnisotropyStrength", value, "Expected value to be less than or equal to 1");
}
this.m_anisotropyStrength = value;
}
}
/// <summary>
/// The rotation of the anisotropy.
/// </summary>
[System.Text.Json.Serialization.JsonPropertyNameAttribute("anisotropyRotation")]
public float AnisotropyRotation {
get {
return this.m_anisotropyRotation;
}
set {
this.m_anisotropyRotation = value;
}
}
/// <summary>
/// The anisotropy texture.
/// </summary>
[System.Text.Json.Serialization.JsonPropertyNameAttribute("anisotropyTexture")]
public TextureInfo AnisotropyTexture {
get {
return this.m_anisotropyTexture;
}
set {
this.m_anisotropyTexture = 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 AnisotropyStrength property should be serialized.
/// </summary>
public bool ShouldSerializeAnisotropyStrength() {
return ((m_anisotropyStrength == 0F)
== false);
}
/// <summary>
/// This method is used to determine if the AnisotropyRotation property should be serialized.
/// </summary>
public bool ShouldSerializeAnisotropyRotation() {
return ((m_anisotropyRotation == 0F)
== false);
}
/// <summary>
/// This method is used to determine if the AnisotropyTexture property should be serialized.
/// </summary>
public bool ShouldSerializeAnisotropyTexture() {
return ((m_anisotropyTexture == 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);
}
}
}