Default 3D rendering material.
    public class SpatialMaterial : Material

This provides a default material with a wide variety of rendering features and properties without the need to write shader code. See the tutorial below for details.

Inheritance Chain

Constructors

    public SpatialMaterial()

Properties

    public Color AlbedoColor { get; set; }

The material’s base color.

    public Texture AlbedoTexture { get; set; }

    public float Anisotropy { get; set; }

The strength of the anisotropy effect.

    public bool AnisotropyEnabled { get; set; }

If true, anisotropy is enabled. Changes the shape of the specular blob and aligns it to tangent space.

    public Texture AnisotropyFlowmap { get; set; }

    public bool AoEnabled { get; set; }

If true, ambient occlusion is enabled.

    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; }

If true, clearcoat rendering is enabled. Adds a secondary transparent pass to the material.

    public float ClearcoatGloss { get; set; }

    public Texture ClearcoatTexture { get; set; }

    public bool DepthDeepParallax { get; set; }

    public bool DepthEnabled { get; set; }

If true, depth mapping is enabled (also called “parallax mapping” or “height mapping”). See also NormalEnabled.

    public bool DepthFlipBinormal { get; set; }

    public bool DepthFlipTangent { 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 float DistanceFadeMaxDistance { get; set; }

    public float DistanceFadeMinDistance { get; set; }

    public DistanceFadeModeEnum DistanceFadeMode { get; set; }

    public Color Emission { get; set; }

The emitted light’s color. See EmissionEnabled.

    public bool EmissionEnabled { get; set; }

If true, the body emits light.

    public float EmissionEnergy { get; set; }

The emitted light’s strength. See EmissionEnabled.

    public bool EmissionOnUv2 { get; set; }

    public EmissionOperatorEnum EmissionOperator { get; set; }

    public Texture EmissionTexture { get; set; }

    public bool FlagsAlbedoTexForceSrgb { get; set; }

    public bool FlagsDisableAmbientLight { get; set; }

If true, the object receives no ambient light.

    public bool FlagsDoNotReceiveShadows { get; set; }

If true, the object receives no shadow that would otherwise be cast onto it.

    public bool FlagsEnsureCorrectNormals { get; set; }

    public bool FlagsFixedSize { get; set; }

If true, the object is rendered at the same size regardless of distance.

    public bool FlagsNoDepthTest { get; set; }

If true, depth testing is disabled and the object will be drawn in render order.

    public bool FlagsTransparent { get; set; }

If true, transparency is enabled on the body. See also ParamsBlendMode.

    public bool FlagsUnshaded { get; set; }

If true, the object is unaffected by lighting.

    public bool FlagsUsePointSize { get; set; }

If true, render point size can be changed.

Note: this is only effective for objects whose geometry is point-based rather than triangle-based. See also ParamsPointSize.

    public bool FlagsUseShadowToOpacity { get; set; }

    public bool FlagsVertexLighting { get; set; }

If true, lighting is calculated per vertex rather than per pixel. This may increase performance on low-end devices.

    public bool FlagsWorldTriplanar { get; set; }

If true, triplanar mapping is calculated in world space rather than object local space. See also Uv1Triplanar.

    public float Metallic { get; set; }

The reflectivity of the object’s surface. The higher the value, the more light is reflected.

    public float MetallicSpecular { get; set; }

General reflectivity amount.

Note: unlike Metallic, this is not energy-conserving, so it should be left at 0.5 in most cases. See also Roughness.

    public Texture MetallicTexture { get; set; }

    public TextureChannel MetallicTextureChannel { get; set; }

    public bool NormalEnabled { get; set; }

If true, normal mapping is enabled.

    public float NormalScale { get; set; }

The strength of the normal map’s effect.

    public Texture NormalTexture { get; set; }

    public float ParamsAlphaScissorThreshold { get; set; }

    public bool ParamsBillboardKeepScale { get; set; }

    public BillboardMode ParamsBillboardMode { get; set; }

Controls how the object faces the camera. See BillboardMode.

    public BlendMode ParamsBlendMode { get; set; }

The material’s blend mode.

Note: Values other than Mix force the object into the transparent pipeline. See BlendMode.

    public CullMode ParamsCullMode { get; set; }

Which side of the object is not drawn when backfaces are rendered. See CullMode.

    public DepthDrawMode ParamsDepthDrawMode { get; set; }

Determines when depth rendering takes place. See DepthDrawMode. See also FlagsTransparent.

    public DiffuseMode ParamsDiffuseMode { get; set; }

The algorithm used for diffuse light scattering. See DiffuseMode.

    public bool ParamsGrow { get; set; }

If true, enables the vertex grow setting. See ParamsGrowAmount.

    public float ParamsGrowAmount { get; set; }

Grows object vertices in the direction of their normals.

    public float ParamsLineWidth { get; set; }

    public float ParamsPointSize { get; set; }

The point size in pixels. See FlagsUsePointSize.

    public SpecularMode ParamsSpecularMode { get; set; }

The method for rendering the specular blob. See SpecularMode.

    public bool ParamsUseAlphaScissor { get; set; }

    public int ParticlesAnimHFrames { get; set; }

The number of horizontal frames in the particle sprite sheet. Only enabled when using [constant BILLBOARD_PARTICLES]. See ParamsBillboardMode.

    public bool ParticlesAnimLoop { get; set; }

If true, particle animations are looped. Only enabled when using [constant BILLBOARD_PARTICLES]. See ParamsBillboardMode.

    public int ParticlesAnimVFrames { get; set; }

The number of vertical frames in the particle sprite sheet. Only enabled when using [constant BILLBOARD_PARTICLES]. See ParamsBillboardMode.

    public float ProximityFadeDistance { get; set; }

    public bool ProximityFadeEnable { get; set; }

If true, the proximity and distance fade effect is enabled.

    public bool RefractionEnabled { get; set; }

If true, the refraction effect is enabled. Distorts transparency based on light from behind the object.

    public float RefractionScale { get; set; }

The strength of the refraction effect.

    public Texture RefractionTexture { get; set; }

    public TextureChannel RefractionTextureChannel { get; set; }

    public float Rim { get; set; }

    public bool RimEnabled { get; set; }

If true, rim effect is enabled.

    public Texture RimTexture { get; set; }

    public float RimTint { get; set; }

The amount of to blend light and albedo color when rendering rim effect. If 0 the light color is used, while 1 means albedo color is used. An intermediate value generally works best.

    public float Roughness { get; set; }

Surface reflection. A value of 0 represents a perfect mirror while a value of 1 completely blurs the reflection. See also Metallic.

    public Texture RoughnessTexture { get; set; }

    public TextureChannel RoughnessTextureChannel { get; set; }

    public bool SubsurfScatterEnabled { get; set; }

If true, subsurface scattering is enabled. Emulates light that penetrates an object’s surface, is scattered, and then emerges.

    public float SubsurfScatterStrength { get; set; }

The strength of the subsurface scattering effect.

    public Texture SubsurfScatterTexture { get; set; }

    public Color Transmission { get; set; }

The color used by the transmission effect. Represents the light passing through an object.

    public bool TransmissionEnabled { get; set; }

If true, the transmission effect is enabled.

    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; }

If true, the model’s vertex colors are processed as sRGB mode.

    public bool VertexColorUseAsAlbedo { get; set; }

If true, the vertex color is used as albedo color.

Methods

    [Obsolete("GetAlbedo is deprecated. Use the AlbedoColor property instead.")]
    public Color GetAlbedo()

Getter for AlbedoColor

    [Obsolete("GetAlphaScissorThreshold is deprecated. Use the ParamsAlphaScissorThreshold property instead.")]
    public float GetAlphaScissorThreshold()

Getter for ParamsAlphaScissorThreshold

    [Obsolete("GetAnisotropy is deprecated. Use the Anisotropy property instead.")]
    public float GetAnisotropy()

Getter for Anisotropy

    [Obsolete("GetAoLightAffect is deprecated. Use the AoLightAffect property instead.")]
    public float GetAoLightAffect()

Getter for AoLightAffect

    [Obsolete("GetAoTextureChannel is deprecated. Use the AoTextureChannel property instead.")]
    public TextureChannel GetAoTextureChannel()

Getter for AoTextureChannel

    [Obsolete("GetBillboardMode is deprecated. Use the ParamsBillboardMode property instead.")]
    public BillboardMode GetBillboardMode()

Getter for ParamsBillboardMode

    [Obsolete("GetBlendMode is deprecated. Use the ParamsBlendMode property instead.")]
    public BlendMode GetBlendMode()

Getter for ParamsBlendMode

    [Obsolete("GetClearcoat is deprecated. Use the Clearcoat property instead.")]
    public float GetClearcoat()

Getter for Clearcoat

    [Obsolete("GetClearcoatGloss is deprecated. Use the ClearcoatGloss property instead.")]
    public float GetClearcoatGloss()

Getter for ClearcoatGloss

    [Obsolete("GetCullMode is deprecated. Use the ParamsCullMode property instead.")]
    public CullMode GetCullMode()

Getter for ParamsCullMode

    [Obsolete("GetDepthDeepParallaxFlipBinormal is deprecated. Use the DepthFlipBinormal property instead.")]
    public bool GetDepthDeepParallaxFlipBinormal()

Getter for DepthFlipBinormal

    [Obsolete("GetDepthDeepParallaxFlipTangent is deprecated. Use the DepthFlipTangent property instead.")]
    public bool GetDepthDeepParallaxFlipTangent()

Getter for DepthFlipTangent

    [Obsolete("GetDepthDeepParallaxMaxLayers is deprecated. Use the DepthMaxLayers property instead.")]
    public int GetDepthDeepParallaxMaxLayers()

Getter for DepthMaxLayers

    [Obsolete("GetDepthDeepParallaxMinLayers is deprecated. Use the DepthMinLayers property instead.")]
    public int GetDepthDeepParallaxMinLayers()

Getter for DepthMinLayers

    [Obsolete("GetDepthDrawMode is deprecated. Use the ParamsDepthDrawMode property instead.")]
    public DepthDrawMode GetDepthDrawMode()

Getter for ParamsDepthDrawMode

    [Obsolete("GetDepthScale is deprecated. Use the DepthScale property instead.")]
    public float GetDepthScale()

Getter for DepthScale

    [Obsolete("GetDetailBlendMode is deprecated. Use the DetailBlendMode property instead.")]
    public BlendMode GetDetailBlendMode()

Getter for DetailBlendMode

    [Obsolete("GetDetailUv is deprecated. Use the DetailUvLayer property instead.")]
    public DetailUV GetDetailUv()

Getter for DetailUvLayer

    [Obsolete("GetDiffuseMode is deprecated. Use the ParamsDiffuseMode property instead.")]
    public DiffuseMode GetDiffuseMode()

Getter for ParamsDiffuseMode

    [Obsolete("GetDistanceFade is deprecated. Use the DistanceFadeMode property instead.")]
    public DistanceFadeModeEnum GetDistanceFade()

Getter for DistanceFadeMode

    [Obsolete("GetDistanceFadeMaxDistance is deprecated. Use the DistanceFadeMaxDistance property instead.")]
    public float GetDistanceFadeMaxDistance()

Getter for DistanceFadeMaxDistance

    [Obsolete("GetDistanceFadeMinDistance is deprecated. Use the DistanceFadeMinDistance property instead.")]
    public float GetDistanceFadeMinDistance()

Getter for DistanceFadeMinDistance

    [Obsolete("GetEmission is deprecated. Use the Emission property instead.")]
    public Color GetEmission()

Getter for Emission

    [Obsolete("GetEmissionEnergy is deprecated. Use the EmissionEnergy property instead.")]
    public float GetEmissionEnergy()

Getter for EmissionEnergy

    [Obsolete("GetEmissionOperator is deprecated. Use the EmissionOperator property instead.")]
    public EmissionOperatorEnum GetEmissionOperator()

Getter for EmissionOperator

    [Obsolete("GetFeature is deprecated. Use the DetailEnabled property instead.")]
    public bool GetFeature(Feature feature)

    [Obsolete("GetFlag is deprecated. Use the Uv2Triplanar property instead.")]
    public bool GetFlag(Flags flag)

    [Obsolete("GetGrow is deprecated. Use the ParamsGrowAmount property instead.")]
    public float GetGrow()

Getter for ParamsGrowAmount

    [Obsolete("GetLineWidth is deprecated. Use the ParamsLineWidth property instead.")]
    public float GetLineWidth()

Getter for ParamsLineWidth

    [Obsolete("GetMetallic is deprecated. Use the Metallic property instead.")]
    public float GetMetallic()

Getter for Metallic

    [Obsolete("GetMetallicTextureChannel is deprecated. Use the MetallicTextureChannel property instead.")]
    public TextureChannel GetMetallicTextureChannel()

Getter for MetallicTextureChannel

    [Obsolete("GetNormalScale is deprecated. Use the NormalScale property instead.")]
    public float GetNormalScale()

Getter for NormalScale

    [Obsolete("GetParticlesAnimHFrames is deprecated. Use the ParticlesAnimHFrames property instead.")]
    public int GetParticlesAnimHFrames()

Getter for ParticlesAnimHFrames

    [Obsolete("GetParticlesAnimLoop is deprecated. Use the ParticlesAnimLoop property instead.")]
    public bool GetParticlesAnimLoop()

Getter for ParticlesAnimLoop

    [Obsolete("GetParticlesAnimVFrames is deprecated. Use the ParticlesAnimVFrames property instead.")]
    public int GetParticlesAnimVFrames()

Getter for ParticlesAnimVFrames

    [Obsolete("GetPointSize is deprecated. Use the ParamsPointSize property instead.")]
    public float GetPointSize()

Getter for ParamsPointSize

    [Obsolete("GetProximityFadeDistance is deprecated. Use the ProximityFadeDistance property instead.")]
    public float GetProximityFadeDistance()

Getter for ProximityFadeDistance

    [Obsolete("GetRefraction is deprecated. Use the RefractionScale property instead.")]
    public float GetRefraction()

Getter for RefractionScale

    [Obsolete("GetRefractionTextureChannel is deprecated. Use the RefractionTextureChannel property instead.")]
    public TextureChannel GetRefractionTextureChannel()

Getter for RefractionTextureChannel

    [Obsolete("GetRim is deprecated. Use the Rim property instead.")]
    public float GetRim()

Getter for Feature.Rim

    [Obsolete("GetRimTint is deprecated. Use the RimTint property instead.")]
    public float GetRimTint()

Getter for RimTint

    [Obsolete("GetRoughness is deprecated. Use the Roughness property instead.")]
    public float GetRoughness()

Getter for Roughness

    [Obsolete("GetRoughnessTextureChannel is deprecated. Use the RoughnessTextureChannel property instead.")]
    public TextureChannel GetRoughnessTextureChannel()

Getter for RoughnessTextureChannel

    [Obsolete("GetSpecular is deprecated. Use the MetallicSpecular property instead.")]
    public float GetSpecular()

Getter for MetallicSpecular

    [Obsolete("GetSpecularMode is deprecated. Use the ParamsSpecularMode property instead.")]
    public SpecularMode GetSpecularMode()

Getter for ParamsSpecularMode

    [Obsolete("GetSubsurfaceScatteringStrength is deprecated. Use the SubsurfScatterStrength property instead.")]
    public float GetSubsurfaceScatteringStrength()

Getter for SubsurfScatterStrength

    [Obsolete("GetTexture is deprecated. Use the DetailNormal property instead.")]
    public Texture GetTexture(TextureParam param)

    [Obsolete("GetTransmission is deprecated. Use the Transmission property instead.")]
    public Color GetTransmission()

Getter for Feature.Transmission

    [Obsolete("GetUv1Offset is deprecated. Use the Uv1Offset property instead.")]
    public Vector3 GetUv1Offset()

Getter for Uv1Offset

    [Obsolete("GetUv1Scale is deprecated. Use the Uv1Scale property instead.")]
    public Vector3 GetUv1Scale()

Getter for Uv1Scale

    [Obsolete("GetUv1TriplanarBlendSharpness is deprecated. Use the Uv1TriplanarSharpness property instead.")]
    public float GetUv1TriplanarBlendSharpness()

Getter for Uv1TriplanarSharpness

    [Obsolete("GetUv2Offset is deprecated. Use the Uv2Offset property instead.")]
    public Vector3 GetUv2Offset()

Getter for Uv1Offset

    [Obsolete("GetUv2Scale is deprecated. Use the Uv2Scale property instead.")]
    public Vector3 GetUv2Scale()

Getter for Uv1Scale

    [Obsolete("GetUv2TriplanarBlendSharpness is deprecated. Use the Uv2TriplanarSharpness property instead.")]
    public float GetUv2TriplanarBlendSharpness()

Getter for Uv1TriplanarSharpness

    [Obsolete("IsDepthDeepParallaxEnabled is deprecated. Use the DepthDeepParallax property instead.")]
    public bool IsDepthDeepParallaxEnabled()

Getter for DepthDeepParallax

    [Obsolete("IsGrowEnabled is deprecated. Use the ParamsGrow property instead.")]
    public bool IsGrowEnabled()

Getter for ParamsGrow

    [Obsolete("IsProximityFadeEnabled is deprecated. Use the ProximityFadeEnable property instead.")]
    public bool IsProximityFadeEnabled()

Getter for ProximityFadeEnable

    [Obsolete("SetAlbedo is deprecated. Use the AlbedoColor property instead.")]
    public void SetAlbedo(Color albedo)

Setter for AlbedoColor

    [Obsolete("SetAlphaScissorThreshold is deprecated. Use the ParamsAlphaScissorThreshold property instead.")]
    public void SetAlphaScissorThreshold(float threshold)

Setter for ParamsAlphaScissorThreshold

    [Obsolete("SetAnisotropy is deprecated. Use the Anisotropy property instead.")]
    public void SetAnisotropy(float anisotropy)

Setter for Anisotropy

    [Obsolete("SetAoLightAffect is deprecated. Use the AoLightAffect property instead.")]
    public void SetAoLightAffect(float amount)

Setter for AoLightAffect

    [Obsolete("SetAoTextureChannel is deprecated. Use the AoTextureChannel property instead.")]
    public void SetAoTextureChannel(TextureChannel channel)

Setter for AoTextureChannel

    [Obsolete("SetBillboardMode is deprecated. Use the ParamsBillboardMode property instead.")]
    public void SetBillboardMode(BillboardMode mode)

Setter for ParamsBillboardMode

    [Obsolete("SetBlendMode is deprecated. Use the ParamsBlendMode property instead.")]
    public void SetBlendMode(BlendMode blendMode)

Setter for ParamsBlendMode

    [Obsolete("SetClearcoat is deprecated. Use the Clearcoat property instead.")]
    public void SetClearcoat(float clearcoat)

Setter for Clearcoat

    [Obsolete("SetClearcoatGloss is deprecated. Use the ClearcoatGloss property instead.")]
    public void SetClearcoatGloss(float clearcoatGloss)

Setter for ClearcoatGloss

    [Obsolete("SetCullMode is deprecated. Use the ParamsCullMode property instead.")]
    public void SetCullMode(CullMode cullMode)

Setter for ParamsCullMode

    [Obsolete("SetDepthDeepParallax is deprecated. Use the DepthDeepParallax property instead.")]
    public void SetDepthDeepParallax(bool enable)

Setter for DepthDeepParallax

    [Obsolete("SetDepthDeepParallaxFlipBinormal is deprecated. Use the DepthFlipBinormal property instead.")]
    public void SetDepthDeepParallaxFlipBinormal(bool flip)

Setter for DepthFlipBinormal

    [Obsolete("SetDepthDeepParallaxFlipTangent is deprecated. Use the DepthFlipTangent property instead.")]
    public void SetDepthDeepParallaxFlipTangent(bool flip)

Setter for DepthFlipTangent

    [Obsolete("SetDepthDeepParallaxMaxLayers is deprecated. Use the DepthMaxLayers property instead.")]
    public void SetDepthDeepParallaxMaxLayers(int layer)

Setter for DepthMaxLayers

    [Obsolete("SetDepthDeepParallaxMinLayers is deprecated. Use the DepthMinLayers property instead.")]
    public void SetDepthDeepParallaxMinLayers(int layer)

Setter for DepthMinLayers

    [Obsolete("SetDepthDrawMode is deprecated. Use the ParamsDepthDrawMode property instead.")]
    public void SetDepthDrawMode(DepthDrawMode depthDrawMode)

Setter for ParamsDepthDrawMode

    [Obsolete("SetDepthScale is deprecated. Use the DepthScale property instead.")]
    public void SetDepthScale(float depthScale)

Setter for DepthScale

    [Obsolete("SetDetailBlendMode is deprecated. Use the DetailBlendMode property instead.")]
    public void SetDetailBlendMode(BlendMode detailBlendMode)

Setter for DetailBlendMode

    [Obsolete("SetDetailUv is deprecated. Use the DetailUvLayer property instead.")]
    public void SetDetailUv(DetailUV detailUv)

Setter for DetailUvLayer

    [Obsolete("SetDiffuseMode is deprecated. Use the ParamsDiffuseMode property instead.")]
    public void SetDiffuseMode(DiffuseMode diffuseMode)

Setter for ParamsDiffuseMode

    [Obsolete("SetDistanceFade is deprecated. Use the DistanceFadeMode property instead.")]
    public void SetDistanceFade(DistanceFadeModeEnum mode)

Setter for DistanceFadeMode

    [Obsolete("SetDistanceFadeMaxDistance is deprecated. Use the DistanceFadeMaxDistance property instead.")]
    public void SetDistanceFadeMaxDistance(float distance)

Setter for DistanceFadeMaxDistance

    [Obsolete("SetDistanceFadeMinDistance is deprecated. Use the DistanceFadeMinDistance property instead.")]
    public void SetDistanceFadeMinDistance(float distance)

Setter for DistanceFadeMinDistance

    [Obsolete("SetEmission is deprecated. Use the Emission property instead.")]
    public void SetEmission(Color emission)

Setter for Emission

    [Obsolete("SetEmissionEnergy is deprecated. Use the EmissionEnergy property instead.")]
    public void SetEmissionEnergy(float emissionEnergy)

Setter for EmissionEnergy

    [Obsolete("SetEmissionOperator is deprecated. Use the EmissionOperator property instead.")]
    public void SetEmissionOperator(EmissionOperatorEnum @operator)

Setter for EmissionOperator

    [Obsolete("SetFeature is deprecated. Use the DetailEnabled property instead.")]
    public void SetFeature(Feature feature, bool enable)

    [Obsolete("SetFlag is deprecated. Use the Uv2Triplanar property instead.")]
    public void SetFlag(Flags flag, bool enable)

    [Obsolete("SetGrow is deprecated. Use the ParamsGrowAmount property instead.")]
    public void SetGrow(float amount)

Setter for ParamsGrowAmount

    [Obsolete("SetGrowEnabled is deprecated. Use the ParamsGrow property instead.")]
    public void SetGrowEnabled(bool enable)

Setter for ParamsGrow

    [Obsolete("SetLineWidth is deprecated. Use the ParamsLineWidth property instead.")]
    public void SetLineWidth(float lineWidth)

Setter for ParamsLineWidth

    [Obsolete("SetMetallic is deprecated. Use the Metallic property instead.")]
    public void SetMetallic(float metallic)

Setter for Metallic

    [Obsolete("SetMetallicTextureChannel is deprecated. Use the MetallicTextureChannel property instead.")]
    public void SetMetallicTextureChannel(TextureChannel channel)

Setter for MetallicTextureChannel

    [Obsolete("SetNormalScale is deprecated. Use the NormalScale property instead.")]
    public void SetNormalScale(float normalScale)

Setter for NormalScale

    [Obsolete("SetParticlesAnimHFrames is deprecated. Use the ParticlesAnimHFrames property instead.")]
    public void SetParticlesAnimHFrames(int frames)

Setter for ParticlesAnimHFrames

    [Obsolete("SetParticlesAnimLoop is deprecated. Use the ParticlesAnimLoop property instead.")]
    public void SetParticlesAnimLoop(bool loop)

Setter for ParticlesAnimLoop

    [Obsolete("SetParticlesAnimVFrames is deprecated. Use the ParticlesAnimVFrames property instead.")]
    public void SetParticlesAnimVFrames(int frames)

Setter for ParticlesAnimVFrames

    [Obsolete("SetPointSize is deprecated. Use the ParamsPointSize property instead.")]
    public void SetPointSize(float pointSize)

Setter for ParamsPointSize

    [Obsolete("SetProximityFade is deprecated. Use the ProximityFadeEnable property instead.")]
    public void SetProximityFade(bool enabled)

Setter for ProximityFadeEnable

    [Obsolete("SetProximityFadeDistance is deprecated. Use the ProximityFadeDistance property instead.")]
    public void SetProximityFadeDistance(float distance)

Setter for ProximityFadeDistance

    [Obsolete("SetRefraction is deprecated. Use the RefractionScale property instead.")]
    public void SetRefraction(float refraction)

Setter for RefractionScale

    [Obsolete("SetRefractionTextureChannel is deprecated. Use the RefractionTextureChannel property instead.")]
    public void SetRefractionTextureChannel(TextureChannel channel)

Setter for RefractionTextureChannel

    [Obsolete("SetRim is deprecated. Use the Rim property instead.")]
    public void SetRim(float rim)

Setter for Feature.Rim

    [Obsolete("SetRimTint is deprecated. Use the RimTint property instead.")]
    public void SetRimTint(float rimTint)

Setter for RimTint

    [Obsolete("SetRoughness is deprecated. Use the Roughness property instead.")]
    public void SetRoughness(float roughness)

Setter for Roughness

    [Obsolete("SetRoughnessTextureChannel is deprecated. Use the RoughnessTextureChannel property instead.")]
    public void SetRoughnessTextureChannel(TextureChannel channel)

Setter for RoughnessTextureChannel

    [Obsolete("SetSpecular is deprecated. Use the MetallicSpecular property instead.")]
    public void SetSpecular(float specular)

Setter for MetallicSpecular

    [Obsolete("SetSpecularMode is deprecated. Use the ParamsSpecularMode property instead.")]
    public void SetSpecularMode(SpecularMode specularMode)

Setter for ParamsSpecularMode

    [Obsolete("SetSubsurfaceScatteringStrength is deprecated. Use the SubsurfScatterStrength property instead.")]
    public void SetSubsurfaceScatteringStrength(float strength)

Setter for SubsurfScatterStrength

    [Obsolete("SetTexture is deprecated. Use the DetailNormal property instead.")]
    public void SetTexture(TextureParam param, Texture texture)

    [Obsolete("SetTransmission is deprecated. Use the Transmission property instead.")]
    public void SetTransmission(Color transmission)

Setter for Feature.Transmission

    [Obsolete("SetUv1Offset is deprecated. Use the Uv1Offset property instead.")]
    public void SetUv1Offset(Vector3 offset)

Setter for Uv1Offset

    [Obsolete("SetUv1Scale is deprecated. Use the Uv1Scale property instead.")]
    public void SetUv1Scale(Vector3 scale)

Setter for Uv1Scale

    [Obsolete("SetUv1TriplanarBlendSharpness is deprecated. Use the Uv1TriplanarSharpness property instead.")]
    public void SetUv1TriplanarBlendSharpness(float sharpness)

Setter for Uv1TriplanarSharpness

    [Obsolete("SetUv2Offset is deprecated. Use the Uv2Offset property instead.")]
    public void SetUv2Offset(Vector3 offset)

Setter for Uv1Offset

    [Obsolete("SetUv2Scale is deprecated. Use the Uv2Scale property instead.")]
    public void SetUv2Scale(Vector3 scale)

Setter for Uv1Scale

    [Obsolete("SetUv2TriplanarBlendSharpness is deprecated. Use the Uv2TriplanarSharpness property instead.")]
    public void SetUv2TriplanarBlendSharpness(float sharpness)

Setter for Uv1TriplanarSharpness

Inner Types

BillboardMode

Name Value Description
Disabled 0 Billboard mode is disabled.
Enabled 1 The object’s Z axis will always face the camera.
FixedY 2 The object’s X axis will always face the camera.
Particles 3 Used for particle systems. Enables particle animation options.

BlendMode

Name Value Description
Mix 0 Default blend mode.
Add 1  
Sub 2  
Mul 3  

CullMode

Name Value Description
Back 0 Default cull mode. The back of the object is culled when not visible.
Front 1 The front of the object is culled when not visible.
Disabled 2 No culling is performed.

DepthDrawMode

Name Value Description
OpaqueOnly 0 Default depth draw mode. Depth is drawn only for opaque objects.
Always 1 Depth draw is calculated for both opaque and transparent objects.
Disabled 2 No depth draw.
AlphaOpaquePrepass 3 For transparent objects, an opaque pass is made first with the opaque parts, then transparency is drawn.

DetailUV

Name Value Description
Uv1    
Uv2    

DiffuseMode

Name Value Description
Burley 0 Default diffuse scattering algorithm.
Lambert 1 Diffuse scattering ignores roughness.
LambertWrap 2 Extends Lambert to cover more than 90 degrees when roughness increases.
OrenNayar 3 Attempts to use roughness to emulate microsurfacing.
Toon 4 Uses a hard cut for lighting, with smoothing affected by roughness.

DistanceFadeModeEnum

Name Value Description
Disabled 0  
PixelAlpha 1  
PixelDither 2  
ObjectDither 3  

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 Represents the size of the [enum Feature] enum.

Flags

Name Value Description
Unshaded 0  
UseVertexLighting 1  
DisableDepthTest 2  
AlbedoFromVertexColor 3  
SrgbVertexColor 4  
UsePointSize 5  
FixedSize 6  
BillboardKeepScale 7  
Uv1UseTriplanar 8  
Uv2UseTriplanar 9  
AoOnUv2 11  
EmissionOnUv2 12  
UseAlphaScissor 13  
TriplanarUseWorld 10  
AlbedoTextureForceSrgb 14  
DontReceiveShadows 15  
DisableAmbientLight 17  
EnsureCorrectNormals 16  
UseShadowToOpacity 18  
Max 19 Represents the size of the [enum Flags] enum.

SpecularMode

Name Value Description
SchlickGgx 0 Default specular blob.
Blinn 1 Older specular algorithm, included for compatibility.
Phong 2 Older specular algorithm, included for compatibility.
Toon 3 Toon blob which changes size based on roughness.
Disabled 4 No specular blob.

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 Represents the size of the [enum TextureParam] enum.
Tags: