SpatialMaterial

Default 3D rendering 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.

@GodotBaseClass
struct SpatialMaterial {}

Members

Aliases

BaseClasses
alias BaseClasses = AliasSeq!(typeof(_GODOT_base), typeof(_GODOT_base).BaseClasses)
Undocumented in source.

Enums

BillboardMode
enum BillboardMode
BlendMode
enum BlendMode
Constants
enum Constants
CullMode
enum CullMode
DepthDrawMode
enum DepthDrawMode
DetailUV
enum DetailUV
DiffuseMode
enum DiffuseMode
DistanceFadeMode
enum DistanceFadeMode
EmissionOperator
enum EmissionOperator
Feature
enum Feature
Flags
enum Flags
SpecularMode
enum SpecularMode
TextureChannel
enum TextureChannel
TextureParam
enum TextureParam

Functions

getAlbedo
Color getAlbedo()
getAlphaScissorThreshold
double getAlphaScissorThreshold()
getAnisotropy
double getAnisotropy()
getAoLightAffect
double getAoLightAffect()
getAoTextureChannel
SpatialMaterial.TextureChannel getAoTextureChannel()
getBillboardMode
SpatialMaterial.BillboardMode getBillboardMode()
getBlendMode
SpatialMaterial.BlendMode getBlendMode()
getClearcoat
double getClearcoat()
getClearcoatGloss
double getClearcoatGloss()
getCullMode
SpatialMaterial.CullMode getCullMode()
getDepthDeepParallaxMaxLayers
long getDepthDeepParallaxMaxLayers()
getDepthDeepParallaxMinLayers
long getDepthDeepParallaxMinLayers()
getDepthDrawMode
SpatialMaterial.DepthDrawMode getDepthDrawMode()
getDepthScale
double getDepthScale()
getDetailBlendMode
SpatialMaterial.BlendMode getDetailBlendMode()
getDetailUv
SpatialMaterial.DetailUV getDetailUv()
getDiffuseMode
SpatialMaterial.DiffuseMode getDiffuseMode()
getDistanceFade
SpatialMaterial.DistanceFadeMode getDistanceFade()
getDistanceFadeMaxDistance
double getDistanceFadeMaxDistance()
getDistanceFadeMinDistance
double getDistanceFadeMinDistance()
getEmission
Color getEmission()
getEmissionEnergy
double getEmissionEnergy()
getEmissionOperator
SpatialMaterial.EmissionOperator getEmissionOperator()
getFeature
bool getFeature(long feature)
getFlag
bool getFlag(long flag)
getGrow
double getGrow()
getLineWidth
double getLineWidth()
getMetallic
double getMetallic()
getMetallicTextureChannel
SpatialMaterial.TextureChannel getMetallicTextureChannel()
getNormalScale
double getNormalScale()
getParticlesAnimHFrames
long getParticlesAnimHFrames()
getParticlesAnimLoop
long getParticlesAnimLoop()
getParticlesAnimVFrames
long getParticlesAnimVFrames()
getPointSize
double getPointSize()
getProximityFadeDistance
double getProximityFadeDistance()
getRefraction
double getRefraction()
getRefractionTextureChannel
SpatialMaterial.TextureChannel getRefractionTextureChannel()
getRim
double getRim()
getRimTint
double getRimTint()
getRoughness
double getRoughness()
getRoughnessTextureChannel
SpatialMaterial.TextureChannel getRoughnessTextureChannel()
getSpecular
double getSpecular()
getSpecularMode
SpatialMaterial.SpecularMode getSpecularMode()
getSubsurfaceScatteringStrength
double getSubsurfaceScatteringStrength()
getTexture
Ref!Texture getTexture(long param)
getTransmission
Color getTransmission()
getUv1Offset
Vector3 getUv1Offset()
getUv1Scale
Vector3 getUv1Scale()
getUv1TriplanarBlendSharpness
double getUv1TriplanarBlendSharpness()
getUv2Offset
Vector3 getUv2Offset()
getUv2Scale
Vector3 getUv2Scale()
getUv2TriplanarBlendSharpness
double getUv2TriplanarBlendSharpness()
isDepthDeepParallaxEnabled
bool isDepthDeepParallaxEnabled()
isGrowEnabled
bool isGrowEnabled()
isProximityFadeEnabled
bool isProximityFadeEnabled()
opAssign
SpatialMaterial opAssign(T n)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(SpatialMaterial other)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(typeof(null) n)
Undocumented in source. Be warned that the author may not have intended to support it.
setAlbedo
void setAlbedo(Color albedo)
setAlphaScissorThreshold
void setAlphaScissorThreshold(double threshold)
setAnisotropy
void setAnisotropy(double anisotropy)
setAoLightAffect
void setAoLightAffect(double amount)
setAoTextureChannel
void setAoTextureChannel(long channel)
setBillboardMode
void setBillboardMode(long mode)
setBlendMode
void setBlendMode(long blend_mode)
setClearcoat
void setClearcoat(double clearcoat)
setClearcoatGloss
void setClearcoatGloss(double clearcoat_gloss)
setCullMode
void setCullMode(long cull_mode)
setDepthDeepParallax
void setDepthDeepParallax(bool enable)
setDepthDeepParallaxMaxLayers
void setDepthDeepParallaxMaxLayers(long layer)
setDepthDeepParallaxMinLayers
void setDepthDeepParallaxMinLayers(long layer)
setDepthDrawMode
void setDepthDrawMode(long depth_draw_mode)
setDepthScale
void setDepthScale(double depth_scale)
setDetailBlendMode
void setDetailBlendMode(long detail_blend_mode)
setDetailUv
void setDetailUv(long detail_uv)
setDiffuseMode
void setDiffuseMode(long diffuse_mode)
setDistanceFade
void setDistanceFade(long mode)
setDistanceFadeMaxDistance
void setDistanceFadeMaxDistance(double distance)
setDistanceFadeMinDistance
void setDistanceFadeMinDistance(double distance)
setEmission
void setEmission(Color emission)
setEmissionEnergy
void setEmissionEnergy(double emission_energy)
setEmissionOperator
void setEmissionOperator(long operator)
setFeature
void setFeature(long feature, bool enable)
setFlag
void setFlag(long flag, bool enable)
setGrow
void setGrow(double amount)
setGrowEnabled
void setGrowEnabled(bool enable)
setLineWidth
void setLineWidth(double line_width)
setMetallic
void setMetallic(double metallic)
setMetallicTextureChannel
void setMetallicTextureChannel(long channel)
setNormalScale
void setNormalScale(double normal_scale)
setParticlesAnimHFrames
void setParticlesAnimHFrames(long frames)
setParticlesAnimLoop
void setParticlesAnimLoop(long frames)
setParticlesAnimVFrames
void setParticlesAnimVFrames(long frames)
setPointSize
void setPointSize(double point_size)
setProximityFade
void setProximityFade(bool enabled)
setProximityFadeDistance
void setProximityFadeDistance(double distance)
setRefraction
void setRefraction(double refraction)
setRefractionTextureChannel
void setRefractionTextureChannel(long channel)
setRim
void setRim(double rim)
setRimTint
void setRimTint(double rim_tint)
setRoughness
void setRoughness(double roughness)
setRoughnessTextureChannel
void setRoughnessTextureChannel(long channel)
setSpecular
void setSpecular(double specular)
setSpecularMode
void setSpecularMode(long specular_mode)
setSubsurfaceScatteringStrength
void setSubsurfaceScatteringStrength(double strength)
setTexture
void setTexture(long param, Texture texture)
setTransmission
void setTransmission(Color transmission)
setUv1Offset
void setUv1Offset(Vector3 offset)
setUv1Scale
void setUv1Scale(Vector3 scale)
setUv1TriplanarBlendSharpness
void setUv1TriplanarBlendSharpness(double sharpness)
setUv2Offset
void setUv2Offset(Vector3 offset)
setUv2Scale
void setUv2Scale(Vector3 scale)
setUv2TriplanarBlendSharpness
void setUv2TriplanarBlendSharpness(double sharpness)

Mixins

__anonymous
mixin baseCasts
Undocumented in source.

Properties

albedoColor
Color albedoColor [@property setter]

The material's base color.

albedoColor
Color albedoColor [@property getter]

The material's base color.

albedoTexture
Texture albedoTexture [@property setter]
albedoTexture
Texture albedoTexture [@property getter]
anisotropy
double anisotropy [@property getter]
double anisotropy [@property setter]

The strength of the anisotropy effect.

anisotropyEnabled
bool anisotropyEnabled [@property getter]
bool anisotropyEnabled [@property setter]

If true anisotropy is enabled. Changes the shape of the specular blob and aligns it to tangent space. Default value: false.

anisotropyFlowmap
Texture anisotropyFlowmap [@property getter]
Texture anisotropyFlowmap [@property setter]
aoEnabled
bool aoEnabled [@property getter]
bool aoEnabled [@property setter]

If true ambient occlusion is enabled.

aoLightAffect
double aoLightAffect [@property getter]
double aoLightAffect [@property setter]
aoOnUv2
bool aoOnUv2 [@property getter]
bool aoOnUv2 [@property setter]
aoTexture
Texture aoTexture [@property getter]
Texture aoTexture [@property setter]
aoTextureChannel
SpatialMaterial.TextureChannel aoTextureChannel [@property getter]
long aoTextureChannel [@property setter]
clearcoat
double clearcoat [@property getter]
double clearcoat [@property setter]
clearcoatEnabled
bool clearcoatEnabled [@property getter]
bool clearcoatEnabled [@property setter]

If true clearcoat rendering is enabled. Adds a secondary transparent pass to the material. Default value: false.

clearcoatGloss
double clearcoatGloss [@property setter]
clearcoatGloss
double clearcoatGloss [@property getter]
clearcoatTexture
Texture clearcoatTexture [@property setter]
clearcoatTexture
Texture clearcoatTexture [@property getter]
depthDeepParallax
bool depthDeepParallax [@property setter]
depthDeepParallax
bool depthDeepParallax [@property getter]
depthEnabled
bool depthEnabled [@property setter]

If true Depth mapping is enabled. See also normalEnabled.

depthEnabled
bool depthEnabled [@property getter]

If true Depth mapping is enabled. See also normalEnabled.

depthMaxLayers
long depthMaxLayers [@property setter]
depthMaxLayers
long depthMaxLayers [@property getter]
depthMinLayers
long depthMinLayers [@property setter]
depthMinLayers
long depthMinLayers [@property getter]
depthScale
double depthScale [@property setter]
depthScale
double depthScale [@property getter]
depthTexture
Texture depthTexture [@property setter]
depthTexture
Texture depthTexture [@property getter]
detailAlbedo
Texture detailAlbedo [@property setter]
detailAlbedo
Texture detailAlbedo [@property getter]
detailBlendMode
long detailBlendMode [@property setter]
detailBlendMode
SpatialMaterial.BlendMode detailBlendMode [@property getter]
detailEnabled
bool detailEnabled [@property setter]
detailEnabled
bool detailEnabled [@property getter]
detailMask
Texture detailMask [@property setter]
detailMask
Texture detailMask [@property getter]
detailNormal
Texture detailNormal [@property setter]
detailNormal
Texture detailNormal [@property getter]
detailUvLayer
long detailUvLayer [@property setter]
detailUvLayer
SpatialMaterial.DetailUV detailUvLayer [@property getter]
distanceFadeMaxDistance
double distanceFadeMaxDistance [@property setter]
distanceFadeMaxDistance
double distanceFadeMaxDistance [@property getter]
distanceFadeMinDistance
double distanceFadeMinDistance [@property setter]
distanceFadeMinDistance
double distanceFadeMinDistance [@property getter]
distanceFadeMode
SpatialMaterial.DistanceFadeMode distanceFadeMode [@property getter]
long distanceFadeMode [@property setter]
emission
Color emission [@property getter]
Color emission [@property setter]

The emitted light's color. See emissionEnabled.

emissionEnabled
bool emissionEnabled [@property getter]
bool emissionEnabled [@property setter]

If true the body emits light.

emissionEnergy
double emissionEnergy [@property getter]
double emissionEnergy [@property setter]

The emitted light's strength. See emissionEnabled.

emissionOnUv2
bool emissionOnUv2 [@property getter]
bool emissionOnUv2 [@property setter]
emissionOperator
SpatialMaterial.EmissionOperator emissionOperator [@property getter]
long emissionOperator [@property setter]
emissionTexture
Texture emissionTexture [@property getter]
Texture emissionTexture [@property setter]
flagsAlbedoTexForceSrgb
bool flagsAlbedoTexForceSrgb [@property setter]
flagsAlbedoTexForceSrgb
bool flagsAlbedoTexForceSrgb [@property getter]
flagsDisableAmbientLight
bool flagsDisableAmbientLight [@property setter]

If true the object receives no ambient light. Default value: false.

flagsDisableAmbientLight
bool flagsDisableAmbientLight [@property getter]

If true the object receives no ambient light. Default value: false.

flagsDoNotReceiveShadows
bool flagsDoNotReceiveShadows [@property setter]

If true the object receives no shadow that would otherwise be cast onto it. Default value: false.

flagsDoNotReceiveShadows
bool flagsDoNotReceiveShadows [@property getter]

If true the object receives no shadow that would otherwise be cast onto it. Default value: false.

flagsEnsureCorrectNormals
bool flagsEnsureCorrectNormals [@property setter]
flagsEnsureCorrectNormals
bool flagsEnsureCorrectNormals [@property getter]
flagsFixedSize
bool flagsFixedSize [@property setter]

If true the object is rendered at the same size regardless of distance. Default value: false.

flagsFixedSize
bool flagsFixedSize [@property getter]

If true the object is rendered at the same size regardless of distance. Default value: false.

flagsNoDepthTest
bool flagsNoDepthTest [@property setter]

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

flagsNoDepthTest
bool flagsNoDepthTest [@property getter]

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

flagsTransparent
bool flagsTransparent [@property setter]

If true transparency is enabled on the body. Default value: false. See also paramsBlendMode.

flagsTransparent
bool flagsTransparent [@property getter]

If true transparency is enabled on the body. Default value: false. See also paramsBlendMode.

flagsUnshaded
bool flagsUnshaded [@property setter]

If true the object is unaffected by lighting. Default value: false.

flagsUnshaded
bool flagsUnshaded [@property getter]

If true the object is unaffected by lighting. Default value: false.

flagsUsePointSize
bool flagsUsePointSize [@property setter]

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.

flagsUsePointSize
bool flagsUsePointSize [@property getter]

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.

flagsVertexLighting
bool flagsVertexLighting [@property setter]

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

flagsVertexLighting
bool flagsVertexLighting [@property getter]

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

flagsWorldTriplanar
bool flagsWorldTriplanar [@property setter]

If true triplanar mapping is calculated in world space rather than object local space. See also uv1Triplanar. Default value: false.

flagsWorldTriplanar
bool flagsWorldTriplanar [@property getter]

If true triplanar mapping is calculated in world space rather than object local space. See also uv1Triplanar. Default value: false.

metallic
double metallic [@property getter]
double metallic [@property setter]

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

metallicSpecular
double metallicSpecular [@property getter]
double metallicSpecular [@property setter]

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.

metallicTexture
Texture metallicTexture [@property getter]
Texture metallicTexture [@property setter]
metallicTextureChannel
SpatialMaterial.TextureChannel metallicTextureChannel [@property getter]
long metallicTextureChannel [@property setter]
normalEnabled
bool normalEnabled [@property getter]
bool normalEnabled [@property setter]

If true normal mapping is enabled.

normalScale
double normalScale [@property getter]
double normalScale [@property setter]

The strength of the normal map's effect.

normalTexture
Texture normalTexture [@property getter]
Texture normalTexture [@property setter]
paramsAlphaScissorThreshold
double paramsAlphaScissorThreshold [@property getter]
double paramsAlphaScissorThreshold [@property setter]
paramsBillboardKeepScale
bool paramsBillboardKeepScale [@property getter]
bool paramsBillboardKeepScale [@property setter]
paramsBillboardMode
SpatialMaterial.BillboardMode paramsBillboardMode [@property getter]
long paramsBillboardMode [@property setter]

Controls how the object faces the camera. See billboardmode.

paramsBlendMode
long paramsBlendMode [@property setter]

The material's blend mode. Note that values other than Mix force the object into the transparent pipeline. See blendmode.

paramsBlendMode
SpatialMaterial.BlendMode paramsBlendMode [@property getter]

The material's blend mode. Note that values other than Mix force the object into the transparent pipeline. See blendmode.

paramsCullMode
long paramsCullMode [@property setter]

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

paramsCullMode
SpatialMaterial.CullMode paramsCullMode [@property getter]

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

paramsDepthDrawMode
long paramsDepthDrawMode [@property setter]

Determines when depth rendering takes place. See depthdrawmode. See also flagsTransparent.

paramsDepthDrawMode
SpatialMaterial.DepthDrawMode paramsDepthDrawMode [@property getter]

Determines when depth rendering takes place. See depthdrawmode. See also flagsTransparent.

paramsDiffuseMode
long paramsDiffuseMode [@property setter]

The algorithm used for diffuse light scattering. See diffusemode.

paramsDiffuseMode
SpatialMaterial.DiffuseMode paramsDiffuseMode [@property getter]

The algorithm used for diffuse light scattering. See diffusemode.

paramsGrow
bool paramsGrow [@property setter]

If true enables the vertex grow setting. See paramsGrowAmount.

paramsGrow
bool paramsGrow [@property getter]

If true enables the vertex grow setting. See paramsGrowAmount.

paramsGrowAmount
double paramsGrowAmount [@property setter]

Grows object vertices in the direction of their normals.

paramsGrowAmount
double paramsGrowAmount [@property getter]

Grows object vertices in the direction of their normals.

paramsLineWidth
double paramsLineWidth [@property setter]
paramsLineWidth
double paramsLineWidth [@property getter]
paramsPointSize
double paramsPointSize [@property setter]

The point size in pixels. See flagsUsePointSize.

paramsPointSize
double paramsPointSize [@property getter]

The point size in pixels. See flagsUsePointSize.

paramsSpecularMode
long paramsSpecularMode [@property setter]

The method for rendering the specular blob. See specularmode.

paramsSpecularMode
SpatialMaterial.SpecularMode paramsSpecularMode [@property getter]

The method for rendering the specular blob. See specularmode.

paramsUseAlphaScissor
bool paramsUseAlphaScissor [@property setter]
paramsUseAlphaScissor
bool paramsUseAlphaScissor [@property getter]
particlesAnimHFrames
long particlesAnimHFrames [@property setter]

The number of horizontal frames in the particle spritesheet. Only enabled when using BillboardMode.BILLBOARD_PARTICLES. See paramsBillboardMode.

particlesAnimHFrames
long particlesAnimHFrames [@property getter]

The number of horizontal frames in the particle spritesheet. Only enabled when using BillboardMode.BILLBOARD_PARTICLES. See paramsBillboardMode.

particlesAnimLoop
long particlesAnimLoop [@property setter]

If true particle animations are looped. Only enabled when using BillboardMode.BILLBOARD_PARTICLES. See paramsBillboardMode.

particlesAnimLoop
long particlesAnimLoop [@property getter]

If true particle animations are looped. Only enabled when using BillboardMode.BILLBOARD_PARTICLES. See paramsBillboardMode.

particlesAnimVFrames
long particlesAnimVFrames [@property setter]

The number of vertical frames in the particle spritesheet. Only enabled when using BillboardMode.BILLBOARD_PARTICLES. See paramsBillboardMode.

particlesAnimVFrames
long particlesAnimVFrames [@property getter]

The number of vertical frames in the particle spritesheet. Only enabled when using BillboardMode.BILLBOARD_PARTICLES. See paramsBillboardMode.

proximityFadeDistance
double proximityFadeDistance [@property getter]
double proximityFadeDistance [@property setter]
proximityFadeEnable
bool proximityFadeEnable [@property getter]
bool proximityFadeEnable [@property setter]

If true the proximity and distance fade effect is enabled. Default value: false.

refractionEnabled
bool refractionEnabled [@property getter]
bool refractionEnabled [@property setter]

If true the refraction effect is enabled. Distorts transparency based on light from behind the object. Default value: false.

refractionScale
double refractionScale [@property getter]
double refractionScale [@property setter]

The strength of the refraction effect.

refractionTexture
Texture refractionTexture [@property getter]
Texture refractionTexture [@property setter]
refractionTextureChannel
SpatialMaterial.TextureChannel refractionTextureChannel [@property getter]
long refractionTextureChannel [@property setter]
rim
double rim [@property setter]
rim
double rim [@property getter]
rimEnabled
bool rimEnabled [@property setter]

If true rim effect is enabled. Default value: false.

rimEnabled
bool rimEnabled [@property getter]

If true rim effect is enabled. Default value: false.

rimTexture
Texture rimTexture [@property getter]
Texture rimTexture [@property setter]
rimTint
double rimTint [@property setter]

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.

rimTint
double rimTint [@property getter]

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.

roughness
double roughness [@property setter]

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

roughness
double roughness [@property getter]

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

roughnessTexture
Texture roughnessTexture [@property setter]
roughnessTexture
Texture roughnessTexture [@property getter]
roughnessTextureChannel
long roughnessTextureChannel [@property setter]
roughnessTextureChannel
SpatialMaterial.TextureChannel roughnessTextureChannel [@property getter]
subsurfScatterEnabled
bool subsurfScatterEnabled [@property getter]
bool subsurfScatterEnabled [@property setter]

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

subsurfScatterStrength
double subsurfScatterStrength [@property getter]
double subsurfScatterStrength [@property setter]

The strength of the subsurface scattering effect.

subsurfScatterTexture
Texture subsurfScatterTexture [@property getter]
Texture subsurfScatterTexture [@property setter]
transmission
Color transmission [@property getter]
Color transmission [@property setter]

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

transmissionEnabled
bool transmissionEnabled [@property getter]
bool transmissionEnabled [@property setter]

If true the transmission effect is enabled. Default value: false.

transmissionTexture
Texture transmissionTexture [@property getter]
Texture transmissionTexture [@property setter]
uv1Offset
Vector3 uv1Offset [@property getter]
Vector3 uv1Offset [@property setter]
uv1Scale
Vector3 uv1Scale [@property getter]
Vector3 uv1Scale [@property setter]
uv1Triplanar
bool uv1Triplanar [@property getter]
bool uv1Triplanar [@property setter]
uv1TriplanarSharpness
double uv1TriplanarSharpness [@property getter]
double uv1TriplanarSharpness [@property setter]
uv2Offset
Vector3 uv2Offset [@property getter]
Vector3 uv2Offset [@property setter]
uv2Scale
Vector3 uv2Scale [@property getter]
Vector3 uv2Scale [@property setter]
uv2Triplanar
bool uv2Triplanar [@property getter]
bool uv2Triplanar [@property setter]
uv2TriplanarSharpness
double uv2TriplanarSharpness [@property getter]
double uv2TriplanarSharpness [@property setter]
vertexColorIsSrgb
bool vertexColorIsSrgb [@property setter]

If true the model's vertex colors are processed as sRGB mode. Default value: false.

vertexColorIsSrgb
bool vertexColorIsSrgb [@property getter]

If true the model's vertex colors are processed as sRGB mode. Default value: false.

vertexColorUseAsAlbedo
bool vertexColorUseAsAlbedo [@property setter]

If true the vertex color is used as albedo color. Default value: false.

vertexColorUseAsAlbedo
bool vertexColorUseAsAlbedo [@property getter]

If true the vertex color is used as albedo color. Default value: false.

Static functions

_new
SpatialMaterial _new()
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

_classBindingInitialized
bool _classBindingInitialized;
Undocumented in source.

Structs

_classBinding
struct _classBinding
Undocumented in source.

Unions

__anonymous
union __anonymous
Undocumented in source.

Variables

_GODOT_internal_name
enum string _GODOT_internal_name;
Undocumented in source.

Mixed In Members

From mixin baseCasts

as
To as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
To as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
ToRef as()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(ToRef)
Undocumented in source.
opCast
void* opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
godot_object opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
bool opCast()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta