mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-29 06:28:25 +01:00
SOURCE DUMP v1
This commit is contained in:
parent
bd62d51ec9
commit
fb20299e9d
1 changed files with 768360 additions and 0 deletions
325
brutal.gltf/Brutal.Gltf/GltfApi/GeneratedSchema/Material.gen.cs
Normal file
325
brutal.gltf/Brutal.Gltf/GltfApi/GeneratedSchema/Material.gen.cs
Normal file
|
|
@ -0,0 +1,325 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <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
|
||||
/// The material appearance of a primitive.
|
||||
/// </summary>
|
||||
public partial class Material {
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for Name.
|
||||
/// </summary>
|
||||
private string m_name;
|
||||
|
||||
/// <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>
|
||||
/// Backing field for PbrMetallicRoughness.
|
||||
/// </summary>
|
||||
private MaterialPbrMetallicRoughness m_pbrMetallicRoughness;
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for NormalTexture.
|
||||
/// </summary>
|
||||
private MaterialNormalTextureInfo m_normalTexture;
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for OcclusionTexture.
|
||||
/// </summary>
|
||||
private MaterialOcclusionTextureInfo m_occlusionTexture;
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for EmissiveTexture.
|
||||
/// </summary>
|
||||
private TextureInfo m_emissiveTexture;
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for EmissiveFactor.
|
||||
/// </summary>
|
||||
private Brutal.Numerics.float3 m_emissiveFactor = new Brutal.Numerics.float3(0F, 0F, 0F);
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for AlphaMode.
|
||||
/// </summary>
|
||||
private AlphaModeEnum m_alphaMode = AlphaModeEnum.Opaque;
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for AlphaCutoff.
|
||||
/// </summary>
|
||||
private float m_alphaCutoff = 0.5F;
|
||||
|
||||
/// <summary>
|
||||
/// Backing field for DoubleSided.
|
||||
/// </summary>
|
||||
private bool m_doubleSided = false;
|
||||
|
||||
/// <summary>
|
||||
/// The user-defined name of this object.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("name")]
|
||||
public string Name {
|
||||
get {
|
||||
return this.m_name;
|
||||
}
|
||||
set {
|
||||
this.m_name = 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>
|
||||
/// A set of parameter values that are used to define the metallic-roughness material model from Physically Based Rendering (PBR) methodology. When undefined, all the default values of `pbrMetallicRoughness` **MUST** apply.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("pbrMetallicRoughness")]
|
||||
public MaterialPbrMetallicRoughness PbrMetallicRoughness {
|
||||
get {
|
||||
return this.m_pbrMetallicRoughness;
|
||||
}
|
||||
set {
|
||||
this.m_pbrMetallicRoughness = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The tangent space normal texture.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("normalTexture")]
|
||||
public MaterialNormalTextureInfo NormalTexture {
|
||||
get {
|
||||
return this.m_normalTexture;
|
||||
}
|
||||
set {
|
||||
this.m_normalTexture = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The occlusion texture.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("occlusionTexture")]
|
||||
public MaterialOcclusionTextureInfo OcclusionTexture {
|
||||
get {
|
||||
return this.m_occlusionTexture;
|
||||
}
|
||||
set {
|
||||
this.m_occlusionTexture = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The emissive texture.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("emissiveTexture")]
|
||||
public TextureInfo EmissiveTexture {
|
||||
get {
|
||||
return this.m_emissiveTexture;
|
||||
}
|
||||
set {
|
||||
this.m_emissiveTexture = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The factors for the emissive color of the material.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("emissiveFactor")]
|
||||
public Brutal.Numerics.float3 EmissiveFactor {
|
||||
get {
|
||||
return this.m_emissiveFactor;
|
||||
}
|
||||
set {
|
||||
this.m_emissiveFactor = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The alpha rendering mode of the material.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonConverterAttribute(typeof(System.Text.Json.Serialization.JsonStringEnumConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("alphaMode")]
|
||||
public AlphaModeEnum AlphaMode {
|
||||
get {
|
||||
return this.m_alphaMode;
|
||||
}
|
||||
set {
|
||||
this.m_alphaMode = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The alpha cutoff value of the material.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("alphaCutoff")]
|
||||
public float AlphaCutoff {
|
||||
get {
|
||||
return this.m_alphaCutoff;
|
||||
}
|
||||
set {
|
||||
if ((value < 0D)) {
|
||||
throw new System.ArgumentOutOfRangeException("AlphaCutoff", value, "Expected value to be greater than or equal to 0");
|
||||
}
|
||||
this.m_alphaCutoff = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Specifies whether the material is double sided.
|
||||
/// </summary>
|
||||
[System.Text.Json.Serialization.JsonPropertyNameAttribute("doubleSided")]
|
||||
public bool DoubleSided {
|
||||
get {
|
||||
return this.m_doubleSided;
|
||||
}
|
||||
set {
|
||||
this.m_doubleSided = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This method is used to determine if the Name property should be serialized.
|
||||
/// </summary>
|
||||
public bool ShouldSerializeName() {
|
||||
return ((m_name == 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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This method is used to determine if the PbrMetallicRoughness property should be serialized.
|
||||
/// </summary>
|
||||
public bool ShouldSerializePbrMetallicRoughness() {
|
||||
return ((m_pbrMetallicRoughness == null)
|
||||
== false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This method is used to determine if the NormalTexture property should be serialized.
|
||||
/// </summary>
|
||||
public bool ShouldSerializeNormalTexture() {
|
||||
return ((m_normalTexture == null)
|
||||
== false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This method is used to determine if the OcclusionTexture property should be serialized.
|
||||
/// </summary>
|
||||
public bool ShouldSerializeOcclusionTexture() {
|
||||
return ((m_occlusionTexture == null)
|
||||
== false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This method is used to determine if the EmissiveTexture property should be serialized.
|
||||
/// </summary>
|
||||
public bool ShouldSerializeEmissiveTexture() {
|
||||
return ((m_emissiveTexture == null)
|
||||
== false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This method is used to determine if the EmissiveFactor property should be serialized.
|
||||
/// </summary>
|
||||
public bool ShouldSerializeEmissiveFactor() {
|
||||
return ((m_emissiveFactor == new Brutal.Numerics.float3(0F, 0F, 0F))
|
||||
== false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This method is used to determine if the AlphaMode property should be serialized.
|
||||
/// </summary>
|
||||
public bool ShouldSerializeAlphaMode() {
|
||||
return ((m_alphaMode == AlphaModeEnum.Opaque)
|
||||
== false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This method is used to determine if the AlphaCutoff property should be serialized.
|
||||
/// </summary>
|
||||
public bool ShouldSerializeAlphaCutoff() {
|
||||
return ((m_alphaCutoff == 0.5F)
|
||||
== false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// This method is used to determine if the DoubleSided property should be serialized.
|
||||
/// </summary>
|
||||
public bool ShouldSerializeDoubleSided() {
|
||||
return ((m_doubleSided == false)
|
||||
== false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Enum part of the GLTF file schema
|
||||
/// The alpha rendering mode of the material.
|
||||
/// </summary>
|
||||
public enum AlphaModeEnum {
|
||||
|
||||
Opaque,
|
||||
|
||||
Mask,
|
||||
|
||||
Blend,
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue