public class SpatialMaterial : Material

Inheritance Chain

Constructors

    public SpatialMaterial()

Properties

    public Color AlbedoColor { get; set; }

    public Texture AlbedoTexture { get; set; }

    public float Anisotropy { get; set; }

    public bool AnisotropyEnabled { get; set; }

    public Texture AnisotropyFlowmap { get; set; }

    public bool AoEnabled { get; set; }

    public float AoLightAffect { get; set; }

    public bool AoOnUv2 { get; set; }

    public Texture AoTexture { get; set; }

    public TextureChannel AoTextureChannel { get; set; }

    public float Clearcoat { get; set; }

    public bool ClearcoatEnabled { get; set; }

    public float ClearcoatGloss { get; set; }

    public Texture ClearcoatTexture { get; set; }

    public bool DepthDeepParallax { get; set; }

    public bool DepthEnabled { get; set; }

    public int DepthMaxLayers { get; set; }

    public int DepthMinLayers { get; set; }

    public float DepthScale { get; set; }

    public Texture DepthTexture { get; set; }

    public Texture DetailAlbedo { get; set; }

    public BlendMode DetailBlendMode { get; set; }

    public bool DetailEnabled { get; set; }

    public Texture DetailMask { get; set; }

    public Texture DetailNormal { get; set; }

    public DetailUV DetailUvLayer { get; set; }

    public bool DistanceFadeEnable { get; set; }

    public float DistanceFadeMaxDistance { get; set; }

    public float DistanceFadeMinDistance { get; set; }

    public Color Emission { get; set; }

    public bool EmissionEnabled { get; set; }

    public float EmissionEnergy { get; set; }

    public bool EmissionOnUv2 { get; set; }

    public EmissionOperatorEnum EmissionOperator { get; set; }

    public Texture EmissionTexture { get; set; }

    public bool FlagsAlbedoTexForceSrgb { get; set; }

    public bool FlagsFixedSize { get; set; }

    public bool FlagsNoDepthTest { get; set; }

    public bool FlagsTransparent { get; set; }

    public bool FlagsUnshaded { get; set; }

    public bool FlagsUsePointSize { get; set; }

    public bool FlagsVertexLighting { get; set; }

    public bool FlagsWorldTriplanar { get; set; }

    public float Metallic { get; set; }

    public float MetallicSpecular { get; set; }

    public Texture MetallicTexture { get; set; }

    public TextureChannel MetallicTextureChannel { get; set; }

    public bool NormalEnabled { get; set; }

    public float NormalScale { get; set; }

    public Texture NormalTexture { get; set; }

    public float ParamsAlphaScissorThreshold { get; set; }

    public BillboardMode ParamsBillboardMode { get; set; }

    public BlendMode ParamsBlendMode { get; set; }

    public CullMode ParamsCullMode { get; set; }

    public DepthDrawMode ParamsDepthDrawMode { get; set; }

    public DiffuseMode ParamsDiffuseMode { get; set; }

    public bool ParamsGrow { get; set; }

    public float ParamsGrowAmount { get; set; }

    public float ParamsLineWidth { get; set; }

    public float ParamsPointSize { get; set; }

    public SpecularMode ParamsSpecularMode { get; set; }

    public bool ParamsUseAlphaScissor { get; set; }

    public int ParticlesAnimHFrames { get; set; }

    public int ParticlesAnimLoop { get; set; }

    public int ParticlesAnimVFrames { get; set; }

    public float ProximityFadeDistance { get; set; }

    public bool ProximityFadeEnable { get; set; }

    public bool RefractionEnabled { get; set; }

    public float RefractionScale { get; set; }

    public Texture RefractionTexture { get; set; }

    public TextureChannel RefractionTextureChannel { get; set; }

    public float Rim { get; set; }

    public bool RimEnabled { get; set; }

    public Texture RimTexture { get; set; }

    public float RimTint { get; set; }

    public float Roughness { get; set; }

    public Texture RoughnessTexture { get; set; }

    public TextureChannel RoughnessTextureChannel { get; set; }

    public bool SubsurfScatterEnabled { get; set; }

    public float SubsurfScatterStrength { get; set; }

    public Texture SubsurfScatterTexture { get; set; }

    public Color Transmission { get; set; }

    public bool TransmissionEnabled { get; set; }

    public Texture TransmissionTexture { get; set; }

    public Vector3 Uv1Offset { get; set; }

    public Vector3 Uv1Scale { get; set; }

    public bool Uv1Triplanar { get; set; }

    public float Uv1TriplanarSharpness { get; set; }

    public Vector3 Uv2Offset { get; set; }

    public Vector3 Uv2Scale { get; set; }

    public bool Uv2Triplanar { get; set; }

    public float Uv2TriplanarSharpness { get; set; }

    public bool VertexColorIsSrgb { get; set; }

    public bool VertexColorUseAsAlbedo { get; set; }

Methods

    public Color GetAlbedo()

Getter for AlbedoColor

    public float GetAlphaScissorThreshold()

Getter for ParamsAlphaScissorThreshold

    public float GetAnisotropy()

Getter for Anisotropy

    public float GetAoLightAffect()

Getter for AoLightAffect

    public TextureChannel GetAoTextureChannel()

Getter for AoTextureChannel

    public BillboardMode GetBillboardMode()

Getter for ParamsBillboardMode

    public BlendMode GetBlendMode()

Getter for ParamsBlendMode

    public float GetClearcoat()

Getter for Clearcoat

    public float GetClearcoatGloss()

Getter for ClearcoatGloss

    public CullMode GetCullMode()

Getter for ParamsCullMode

    public int GetDepthDeepParallaxMaxLayers()

Getter for DepthMaxLayers

    public int GetDepthDeepParallaxMinLayers()

Getter for DepthMinLayers

    public DepthDrawMode GetDepthDrawMode()

Getter for ParamsDepthDrawMode

    public float GetDepthScale()

Getter for DepthScale

    public BlendMode GetDetailBlendMode()

Getter for DetailBlendMode

    public DetailUV GetDetailUv()

Getter for DetailUvLayer

    public DiffuseMode GetDiffuseMode()

Getter for ParamsDiffuseMode

    public float GetDistanceFadeMaxDistance()

Getter for DistanceFadeMaxDistance

    public float GetDistanceFadeMinDistance()

Getter for DistanceFadeMinDistance

    public Color GetEmission()

Getter for Emission

    public float GetEmissionEnergy()

Getter for EmissionEnergy

    public EmissionOperatorEnum GetEmissionOperator()

Getter for EmissionOperator

    public bool GetFeature(Feature feature)

    public bool GetFlag(Flags flag)

    public float GetGrow()

Getter for ParamsGrowAmount

    public float GetLineWidth()

Getter for ParamsLineWidth

    public float GetMetallic()

Getter for Metallic

    public TextureChannel GetMetallicTextureChannel()

Getter for MetallicTextureChannel

    public float GetNormalScale()

Getter for NormalScale

    public int GetParticlesAnimHFrames()

Getter for ParticlesAnimHFrames

    public int GetParticlesAnimLoop()

Getter for ParticlesAnimLoop

    public int GetParticlesAnimVFrames()

Getter for ParticlesAnimVFrames

    public float GetPointSize()

Getter for ParamsPointSize

    public float GetProximityFadeDistance()

Getter for ProximityFadeDistance

    public float GetRefraction()

Getter for RefractionScale

    public TextureChannel GetRefractionTextureChannel()

Getter for RefractionTextureChannel

    public float GetRim()

Getter for Feature.Rim

    public float GetRimTint()

Getter for RimTint

    public float GetRoughness()

Getter for Roughness

    public TextureChannel GetRoughnessTextureChannel()

Getter for RoughnessTextureChannel

    public float GetSpecular()

Getter for MetallicSpecular

    public SpecularMode GetSpecularMode()

Getter for ParamsSpecularMode

    public float GetSubsurfaceScatteringStrength()

Getter for SubsurfScatterStrength

    public Texture GetTexture(TextureParam param)

    public Color GetTransmission()

Getter for Feature.Transmission

    public Vector3 GetUv1Offset()

Getter for Uv1Offset

    public Vector3 GetUv1Scale()

Getter for Uv1Scale

    public float GetUv1TriplanarBlendSharpness()

Getter for Uv1TriplanarSharpness

    public Vector3 GetUv2Offset()

Getter for Uv1Offset

    public Vector3 GetUv2Scale()

Getter for Uv1Scale

    public float GetUv2TriplanarBlendSharpness()

Getter for Uv1TriplanarSharpness

    public bool IsDepthDeepParallaxEnabled()

Getter for DepthDeepParallax

    public bool IsDistanceFadeEnabled()

Getter for DistanceFadeEnable

    public bool IsGrowEnabled()

Getter for ParamsGrow

    public bool IsProximityFadeEnabled()

Getter for ProximityFadeEnable

    public void SetAlbedo(Color albedo)

Setter for AlbedoColor

    public void SetAlphaScissorThreshold(float threshold)

Setter for ParamsAlphaScissorThreshold

    public void SetAnisotropy(float anisotropy)

Setter for Anisotropy

    public void SetAoLightAffect(float amount)

Setter for AoLightAffect

    public void SetAoTextureChannel(TextureChannel channel)

Setter for AoTextureChannel

    public void SetBillboardMode(BillboardMode mode)

Setter for ParamsBillboardMode

    public void SetBlendMode(BlendMode blendMode)

Setter for ParamsBlendMode

    public void SetClearcoat(float clearcoat)

Setter for Clearcoat

    public void SetClearcoatGloss(float clearcoatGloss)

Setter for ClearcoatGloss

    public void SetCullMode(CullMode cullMode)

Setter for ParamsCullMode

    public void SetDepthDeepParallax(bool enable)

Setter for DepthDeepParallax

    public void SetDepthDeepParallaxMaxLayers(int layer)

Setter for DepthMaxLayers

    public void SetDepthDeepParallaxMinLayers(int layer)

Setter for DepthMinLayers

    public void SetDepthDrawMode(DepthDrawMode depthDrawMode)

Setter for ParamsDepthDrawMode

    public void SetDepthScale(float depthScale)

Setter for DepthScale

    public void SetDetailBlendMode(BlendMode detailBlendMode)

Setter for DetailBlendMode

    public void SetDetailUv(DetailUV detailUv)

Setter for DetailUvLayer

    public void SetDiffuseMode(DiffuseMode diffuseMode)

Setter for ParamsDiffuseMode

    public void SetDistanceFade(bool enabled)

Setter for DistanceFadeEnable

    public void SetDistanceFadeMaxDistance(float distance)

Setter for DistanceFadeMaxDistance

    public void SetDistanceFadeMinDistance(float distance)

Setter for DistanceFadeMinDistance

    public void SetEmission(Color emission)

Setter for Emission

    public void SetEmissionEnergy(float emissionEnergy)

Setter for EmissionEnergy

    public void SetEmissionOperator(EmissionOperatorEnum @operator)

Setter for EmissionOperator

    public void SetFeature(Feature feature, bool enable)

    public void SetFlag(Flags flag, bool enable)

    public void SetGrow(float amount)

Setter for ParamsGrowAmount

    public void SetGrowEnabled(bool enable)

Setter for ParamsGrow

    public void SetLineWidth(float lineWidth)

Setter for ParamsLineWidth

    public void SetMetallic(float metallic)

Setter for Metallic

    public void SetMetallicTextureChannel(TextureChannel channel)

Setter for MetallicTextureChannel

    public void SetNormalScale(float normalScale)

Setter for NormalScale

    public void SetParticlesAnimHFrames(int frames)

Setter for ParticlesAnimHFrames

    public void SetParticlesAnimLoop(int frames)

Setter for ParticlesAnimLoop

    public void SetParticlesAnimVFrames(int frames)

Setter for ParticlesAnimVFrames

    public void SetPointSize(float pointSize)

Setter for ParamsPointSize

    public void SetProximityFade(bool enabled)

Setter for ProximityFadeEnable

    public void SetProximityFadeDistance(float distance)

Setter for ProximityFadeDistance

    public void SetRefraction(float refraction)

Setter for RefractionScale

    public void SetRefractionTextureChannel(TextureChannel channel)

Setter for RefractionTextureChannel

    public void SetRim(float rim)

Setter for Feature.Rim

    public void SetRimTint(float rimTint)

Setter for RimTint

    public void SetRoughness(float roughness)

Setter for Roughness

    public void SetRoughnessTextureChannel(TextureChannel channel)

Setter for RoughnessTextureChannel

    public void SetSpecular(float specular)

Setter for MetallicSpecular

    public void SetSpecularMode(SpecularMode specularMode)

Setter for ParamsSpecularMode

    public void SetSubsurfaceScatteringStrength(float strength)

Setter for SubsurfScatterStrength

    public void SetTexture(TextureParam param, Texture texture)

    public void SetTransmission(Color transmission)

Setter for Feature.Transmission

    public void SetUv1Offset(Vector3 offset)

Setter for Uv1Offset

    public void SetUv1Scale(Vector3 scale)

Setter for Uv1Scale

    public void SetUv1TriplanarBlendSharpness(float sharpness)

Setter for Uv1TriplanarSharpness

    public void SetUv2Offset(Vector3 offset)

Setter for Uv1Offset

    public void SetUv2Scale(Vector3 scale)

Setter for Uv1Scale

    public void SetUv2TriplanarBlendSharpness(float sharpness)

Setter for Uv1TriplanarSharpness

Inner Types

BillboardMode

Name Value Description
Disabled 0  
Enabled 1  
FixedY 2  
Particles 3  

BlendMode

Name Value Description
Mix 0  
Add 1  
Sub 2  
Mul 3  

CullMode

Name Value Description
Back 0  
Front 1  
Disabled 2  

DepthDrawMode

Name Value Description
OpaqueOnly 0  
Always 1  
Disabled 2  
AlphaOpaquePrepass 3  

DetailUV

Name Value Description
Uv1    
Uv2    

DiffuseMode

Name Value Description
Burley 0  
Lambert 1  
LambertWrap 2  
OrenNayar 3  
Toon 4  

EmissionOperatorEnum

Name Value Description
Add 0  
Multiply 1  

Feature

Name Value Description
Transparent 0  
Emission 1  
NormalMapping 2  
Rim 3  
Clearcoat 4  
Anisotropy 5  
AmbientOcclusion 6  
DepthMapping 7  
SubsuraceScattering 8  
Transmission 9  
Refraction 10  
Detail 11  
Max 12  

Flags

Name Value Description
Unshaded 0  
UseVertexLighting 1  
DisableDepthTest 2  
AlbedoFromVertexColor 3  
SrgbVertexColor 4  
UsePointSize 5  
FixedSize 6  
Uv1UseTriplanar 7  
Uv2UseTriplanar 8  
AoOnUv2 10  
EmissionOnUv2 11  
UseAlphaScissor 12  
TriplanarUseWorld 9  
AlbedoTextureForceSrgb 13  
Max 14  

SpecularMode

Name Value Description
SchlickGgx 0  
Blinn 1  
Phong 2  
Toon 3  
Disabled 4  

TextureChannel

Name Value Description
Red 0  
Green 1  
Blue 2  
Alpha 3  
Grayscale 4  

TextureParam

Name Value Description
Albedo 0  
Metallic 1  
Roughness 2  
Emission 3  
Normal 4  
Rim 5  
Clearcoat 6  
Flowmap 7  
AmbientOcclusion 8  
Depth 9  
SubsurfaceScattering 10  
Transmission 11  
Refraction 12  
DetailMask 13  
DetailAlbedo 14  
DetailNormal 15  
Max 16  
Tags: