mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-29 14:38:25 +01:00
first
This commit is contained in:
parent
bd62d51ec9
commit
b578433e37
1 changed files with 784842 additions and 0 deletions
|
|
@ -0,0 +1,185 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <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 sheen material model.
|
||||
/// Sourced from the 'KHR_materials_sheen' extension
|
||||
/// </summary>
|
||||
public partial class MaterialsSheenGltfMaterialExtension {
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for SheenColorFactor.
|
||||
/// </summary>
|
||||
private Brutal.Numerics.float3 m_sheenColorFactor = new Brutal.Numerics.float3(0F, 0F, 0F);
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for SheenColorTexture.
|
||||
/// </summary>
|
||||
private TextureInfo m_sheenColorTexture;
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for SheenRoughnessFactor.
|
||||
/// </summary>
|
||||
private float m_sheenRoughnessFactor = 0F;
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for SheenRoughnessTexture.
|
||||
/// </summary>
|
||||
private TextureInfo m_sheenRoughnessTexture;
|
||||
|
||||
/// <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>
|
||||
/// Color of the sheen layer (in linear space).
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("sheenColorFactor")]
|
||||
public Brutal.Numerics.float3 SheenColorFactor {
|
||||
get {
|
||||
return this.m_sheenColorFactor;
|
||||
}
|
||||
set {
|
||||
this.m_sheenColorFactor = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The sheen color (RGB) texture.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("sheenColorTexture")]
|
||||
public TextureInfo SheenColorTexture {
|
||||
get {
|
||||
return this.m_sheenColorTexture;
|
||||
}
|
||||
set {
|
||||
this.m_sheenColorTexture = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The sheen layer roughness.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("sheenRoughnessFactor")]
|
||||
public float SheenRoughnessFactor {
|
||||
get {
|
||||
return this.m_sheenRoughnessFactor;
|
||||
}
|
||||
set {
|
||||
if ((value < 0D)) {
|
||||
throw new System.ArgumentOutOfRangeException("SheenRoughnessFactor", value, "Expected value to be greater than or equal to 0");
|
||||
}
|
||||
if ((value > 1D)) {
|
||||
throw new System.ArgumentOutOfRangeException("SheenRoughnessFactor", value, "Expected value to be less than or equal to 1");
|
||||
}
|
||||
this.m_sheenRoughnessFactor = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The sheen roughness (Alpha) texture.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("sheenRoughnessTexture")]
|
||||
public TextureInfo SheenRoughnessTexture {
|
||||
get {
|
||||
return this.m_sheenRoughnessTexture;
|
||||
}
|
||||
set {
|
||||
this.m_sheenRoughnessTexture = 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 SheenColorFactor property should be serialized.
|
||||
/// </summary>
|
||||
public bool ShouldSerializeSheenColorFactor() {
|
||||
return ((m_sheenColorFactor == new Brutal.Numerics.float3(0F, 0F, 0F))
|
||||
== false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This method is used to determine if the SheenColorTexture property should be serialized.
|
||||
/// </summary>
|
||||
public bool ShouldSerializeSheenColorTexture() {
|
||||
return ((m_sheenColorTexture == null)
|
||||
== false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This method is used to determine if the SheenRoughnessFactor property should be serialized.
|
||||
/// </summary>
|
||||
public bool ShouldSerializeSheenRoughnessFactor() {
|
||||
return ((m_sheenRoughnessFactor == 0F)
|
||||
== false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This method is used to determine if the SheenRoughnessTexture property should be serialized.
|
||||
/// </summary>
|
||||
public bool ShouldSerializeSheenRoughnessTexture() {
|
||||
return ((m_sheenRoughnessTexture == 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue