mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-26 13:08:24 +01:00
157 lines
5.1 KiB
C#
157 lines
5.1 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
|
|
/// Reference to a texture.
|
|
/// </summary>
|
|
public partial class MaterialOcclusionTextureInfo {
|
|
|
|
/// <summary>
|
|
/// Backing field for Index.
|
|
/// </summary>
|
|
private int m_index;
|
|
|
|
/// <summary>
|
|
/// Backing field for TexCoord.
|
|
/// </summary>
|
|
private int m_texCoord = 0;
|
|
|
|
/// <summary>
|
|
/// Backing field for Strength.
|
|
/// </summary>
|
|
private float m_strength = 1F;
|
|
|
|
/// <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 index of the texture.
|
|
/// </summary>
|
|
[System.Text.Json.Serialization.JsonRequiredAttribute()]
|
|
[System.Text.Json.Serialization.JsonPropertyNameAttribute("index")]
|
|
public int Index {
|
|
get {
|
|
return this.m_index;
|
|
}
|
|
set {
|
|
if ((value < 0)) {
|
|
throw new System.ArgumentOutOfRangeException("Index", value, "Expected value to be greater than or equal to 0");
|
|
}
|
|
this.m_index = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// The set index of texture's TEXCOORD attribute used for texture coordinate mapping.
|
|
/// </summary>
|
|
[System.Text.Json.Serialization.JsonPropertyNameAttribute("texCoord")]
|
|
public int TexCoord {
|
|
get {
|
|
return this.m_texCoord;
|
|
}
|
|
set {
|
|
if ((value < 0)) {
|
|
throw new System.ArgumentOutOfRangeException("TexCoord", value, "Expected value to be greater than or equal to 0");
|
|
}
|
|
this.m_texCoord = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// A scalar multiplier controlling the amount of occlusion applied.
|
|
/// </summary>
|
|
[System.Text.Json.Serialization.JsonPropertyNameAttribute("strength")]
|
|
public float Strength {
|
|
get {
|
|
return this.m_strength;
|
|
}
|
|
set {
|
|
if ((value < 0D)) {
|
|
throw new System.ArgumentOutOfRangeException("Strength", value, "Expected value to be greater than or equal to 0");
|
|
}
|
|
if ((value > 1D)) {
|
|
throw new System.ArgumentOutOfRangeException("Strength", value, "Expected value to be less than or equal to 1");
|
|
}
|
|
this.m_strength = 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 TexCoord property should be serialized.
|
|
/// </summary>
|
|
public bool ShouldSerializeTexCoord() {
|
|
return ((m_texCoord == 0)
|
|
== false);
|
|
}
|
|
|
|
/// <summary>
|
|
/// This method is used to determine if the Strength property should be serialized.
|
|
/// </summary>
|
|
public bool ShouldSerializeStrength() {
|
|
return ((m_strength == 1F)
|
|
== 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);
|
|
}
|
|
}
|
|
}
|