mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-29 14:38:25 +01:00
SOURCE DUMP v1
This commit is contained in:
parent
bd62d51ec9
commit
fb20299e9d
1 changed files with 768360 additions and 0 deletions
|
|
@ -0,0 +1,216 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <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
|
||||
/// A set of parameter values that are used to define the metallic-roughness material model from Physically-Based Rendering (PBR) methodology.
|
||||
/// </summary>
|
||||
public partial class MaterialPbrMetallicRoughness {
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for BaseColorFactor.
|
||||
/// </summary>
|
||||
private Brutal.Numerics.float4 m_baseColorFactor = new Brutal.Numerics.float4(1F, 1F, 1F, 1F);
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for BaseColorTexture.
|
||||
/// </summary>
|
||||
private TextureInfo m_baseColorTexture;
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for MetallicFactor.
|
||||
/// </summary>
|
||||
private float m_metallicFactor = 1F;
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for RoughnessFactor.
|
||||
/// </summary>
|
||||
private float m_roughnessFactor = 1F;
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for MetallicRoughnessTexture.
|
||||
/// </summary>
|
||||
private TextureInfo m_metallicRoughnessTexture;
|
||||
|
||||
/// <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 factors for the base color of the material.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("baseColorFactor")]
|
||||
public Brutal.Numerics.float4 BaseColorFactor {
|
||||
get {
|
||||
return this.m_baseColorFactor;
|
||||
}
|
||||
set {
|
||||
this.m_baseColorFactor = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The base color texture.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("baseColorTexture")]
|
||||
public TextureInfo BaseColorTexture {
|
||||
get {
|
||||
return this.m_baseColorTexture;
|
||||
}
|
||||
set {
|
||||
this.m_baseColorTexture = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The factor for the metalness of the material.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("metallicFactor")]
|
||||
public float MetallicFactor {
|
||||
get {
|
||||
return this.m_metallicFactor;
|
||||
}
|
||||
set {
|
||||
if ((value < 0D)) {
|
||||
throw new System.ArgumentOutOfRangeException("MetallicFactor", value, "Expected value to be greater than or equal to 0");
|
||||
}
|
||||
if ((value > 1D)) {
|
||||
throw new System.ArgumentOutOfRangeException("MetallicFactor", value, "Expected value to be less than or equal to 1");
|
||||
}
|
||||
this.m_metallicFactor = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The factor for the roughness of the material.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("roughnessFactor")]
|
||||
public float RoughnessFactor {
|
||||
get {
|
||||
return this.m_roughnessFactor;
|
||||
}
|
||||
set {
|
||||
if ((value < 0D)) {
|
||||
throw new System.ArgumentOutOfRangeException("RoughnessFactor", value, "Expected value to be greater than or equal to 0");
|
||||
}
|
||||
if ((value > 1D)) {
|
||||
throw new System.ArgumentOutOfRangeException("RoughnessFactor", value, "Expected value to be less than or equal to 1");
|
||||
}
|
||||
this.m_roughnessFactor = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The metallic-roughness texture.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("metallicRoughnessTexture")]
|
||||
public TextureInfo MetallicRoughnessTexture {
|
||||
get {
|
||||
return this.m_metallicRoughnessTexture;
|
||||
}
|
||||
set {
|
||||
this.m_metallicRoughnessTexture = 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 BaseColorFactor property should be serialized.
|
||||
/// </summary>
|
||||
public bool ShouldSerializeBaseColorFactor() {
|
||||
return ((m_baseColorFactor == new Brutal.Numerics.float4(1F, 1F, 1F, 1F))
|
||||
== false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This method is used to determine if the BaseColorTexture property should be serialized.
|
||||
/// </summary>
|
||||
public bool ShouldSerializeBaseColorTexture() {
|
||||
return ((m_baseColorTexture == null)
|
||||
== false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This method is used to determine if the MetallicFactor property should be serialized.
|
||||
/// </summary>
|
||||
public bool ShouldSerializeMetallicFactor() {
|
||||
return ((m_metallicFactor == 1F)
|
||||
== false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This method is used to determine if the RoughnessFactor property should be serialized.
|
||||
/// </summary>
|
||||
public bool ShouldSerializeRoughnessFactor() {
|
||||
return ((m_roughnessFactor == 1F)
|
||||
== false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This method is used to determine if the MetallicRoughnessTexture property should be serialized.
|
||||
/// </summary>
|
||||
public bool ShouldSerializeMetallicRoughnessTexture() {
|
||||
return ((m_metallicRoughnessTexture == 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