Material¶
Reference¶
- class CullingMode¶
Enumeration of the available culling modes
Name
Description
Front
front polygons are culled
Back
back polygons are culled
Off
no polygons are culled
- class Workflow¶
Enumeration of available workflows
Name
Description
Metallic
metallic workflow
Specular
specular workflow
- class WrapMode¶
Enumeration of available wrap modes.
Name
Description
Repeat
texture coordinates repeat
ClampToEdge
texture coordinates clamp to edge
MirroredRepeat
texture coordinates mirror and then repeat
- class MagFilter¶
Enumeration of available magnification filters.
Name
Description
Linear
linear magnification filter
Nearest
nearest magnification filter
- class MinFilter¶
Enumeration of available minification filters.
Name
Description
Nearest
nearest minification filter
NearestMipmapNearest
nearest with nearest mipmap
NearestMipmapLinear
nearest with linear mipmap
Linear
linear minification filter
LinearMipmapNearest
linear with nearest mipmap
LinearMipmapLinear
linear with linear mipmap
- class Anisotropy¶
Enumeration of available anisotropy levels.
Name
Description
X1
1x anisotropy level
X2
2x anisotropy level
X4
4x anisotropy level
X8
8x anisotropy level
X16
16x anisotropy level
- class NormalType¶
Enumeration of available normal types.
Name
Description
TangentSpace
tangent space normals
ObjectSpace
object space normals
- class BlendMode¶
Enumeration of available blend modes.
Name
Description
None
no blending
Normal
normal blending
Additive
additive blending
Subtractive
subtractive blending
Multiply
multiply blending
Custom
custom blending
- class BlendSource¶
Enumeration of available blend sources.
Name
Description
Zero
zero source
One
one source
SourceColor
source color
OneMinusSourceColor
one minus source color
SourceAlpha
source alpha
OneMinusSourceAlpha
one minus source alpha
DestinationAlpha
destination alpha
OneMinusDestinationAlpha
one minus destination alpha
DestinationColor
destination color
OneMinusDestinationColor
one minus destination color
SourceAlphaSaturate
source alpha saturate
- class BlendDest¶
Enumeration of available blend destinations.
- class BlendEquation¶
Enumeration of available blend equations.
Name
Description
Add
addition blend equation
Subtract
subtraction blend equation
ReverseSubtract
reverse subtraction blend equation
Min
minimum blend equation
Max
maximum blend equation
- class DepthMode¶
Enumeration of available depth test modes.
Name
Description
Never
never pass depth test
Always
always pass depth test
Less
pass if incoming is less than existing
LessEqual
pass if incoming is less or equal to existing
GreaterEqual
pass if incoming is greater or equal to existing
Greater
pass if incoming is greater than existing
NotEqual
pass if incoming is not equal to existing
- class Material¶
- module:
- fromObject(obj)¶
Create a material from an object
- fromHandle(handle)¶
create a material object from a handle. Used internally.
- Parameters:¶
handle (
number
)
- create(attributes)¶
Create a new material
- getWorkflow()¶
Retrieves the workflow value for the material.
- setWorkflow(workflow)¶
Sets the workflow for the material.
- Parameters:¶
workflow (
str
) – The desired workflow value. Expected to be a value from Material.Workflow.
- getAttenuationColor()¶
Retrieves the attenuation color for the material.
- setAttenuationColor(color)¶
Sets the attenuation color for the material.
- getAttenuationDistance()¶
Retrieves the attenuation distance for the material.
- setAttenuationDistance(distance)¶
Sets the attenuation distance for the material.
- Parameters:¶
distance (
number
) – A number representing the attenuation distance.
- getDiffuseColor()¶
Retrieves the diffuse color for the material.
- setDiffuseColor(color)¶
Sets the diffuse color for the material.
- getAlbedoMap()¶
Get the albedo texture or video or nil if none is linked
- setAlbedoMap(linkItem)¶
Set the albedo texture or video
- Parameters:¶
linkItem (
texture
) – or video to use
- getAlbedoWrapS()¶
Gets the wrap mode along the s-axis (usually horizontal) for the albedo map.
- Return type:¶
str
- setAlbedoWrapS(mode)¶
Sets the wrap mode along the s-axis (usually horizontal) for the albedo map.
- Parameters:¶
mode (
str
) – The wrap mode. Expected to be a value from Material.WrapMode.
- getAlbedoWrapT()¶
Sets the wrap mode along the t-axis (usually vertical) for the albedo map.
- Return type:¶
str
- setAlbedoWrapT(mode)¶
Sets the wrap mode along the t-axis (usually vertical) for the albedo map.
- Parameters:¶
mode (
str
) – The wrap mode. Expected to be a value from Material.WrapMode.
- getAlbedoMagFilter()¶
Gets the magnification filter for the albedo map.
- setAlbedoMagFilter(filter)¶
Sets the magnification filter for the albedo map.
- Parameters:¶
filter (
str
) – The magnification filter. Expected to be a value from Material.MagFilter.
- getAlbedoMinFilter()¶
Gets the minification filter for the albedo map.
- setAlbedoMinFilter(filter)¶
Sets the minification filter for the albedo map.
- Parameters:¶
filter (
str
) – The minification filter. Expected to be a value from Material.MinFilter.
- getAlbedoAnisotropy()¶
Gets the anisotropy level for the albedo map.
- setAlbedoAnisotropy(anisotropy)¶
Sets the anisotropy level for the albedo map.
- Parameters:¶
anisotropy (
str
) – The anisotropy level. Expected to be a value from Material.Anisotropy.
- getAlphaTest()¶
Get the alpha test value of the material.
- setAlphaTest(amount)¶
Set the alpha test value of the material.
- Parameters:¶
amount (
number
) – The alpha test value.
- getTransparent()¶
Check if the material is transparent.
- setTransparent(enabled)¶
Set the transparency of the material.
- Parameters:¶
enabled (
boolean
) – True if transparent, false otherwise.
- setOpacity(amount)¶
Set the opacity of the material.
- Parameters:¶
amount (
number
) – The opacity value.
- getAlphaMap()¶
Get the alpha map of the material.
- setAlphaMap(texture)¶
Set the alpha map of the material.
- getAlphaWrapS()¶
Get the alpha wrap S mode of the material.
- setAlphaWrapS(mode)¶
Set the alpha wrap S mode of the material.
- Parameters:¶
mode (
str
) – The wrap mode (from Material.WrapMode).
- getAlphaWrapT()¶
Get the alpha wrap T mode of the material.
- setAlphaWrapT(mode)¶
Set the alpha wrap T mode of the material.
- Parameters:¶
mode (
str
) – The wrap mode (from Material.WrapMode).
- getAlphaMagFilter()¶
Get the alpha magnification filter of the material.
- setAlphaMagFilter(filter)¶
Set the alpha magnification filter of the material.
- Parameters:¶
filter (
str
) – The magnification filter mode (from Material.MagFilter).
- getAlphaMinFilter()¶
Get the alpha minification filter of the material.
- setAlphaMinFilter(filter)¶
Set the alpha minification filter of the material.
- Parameters:¶
filter (
str
) – The minification filter mode (from Material.MinFilter).
- getAlphaAnisotropy()¶
Get the alpha anisotropy mode of the material.
- setAlphaAnisotropy(anisotropy)¶
Set the alpha anisotropy mode of the material.
- Parameters:¶
anisotropy (
str
) – The anisotropy mode (from Material.Anisotropy).
- getEmissiveColor()¶
Get the emissive color of the material.
- setEmissiveColor(color)¶
Set the emissive color of the material.
- getEmissiveMap()¶
Get the emissive texture or nil if none is linked.
- setEmissiveMap(texture)¶
Set the emissive texture.
- getEmissiveWrapS()¶
Get the emissive wrap S mode of the material.
- setEmissiveWrapS(mode)¶
Set the emissive wrap S mode of the material.
- Parameters:¶
mode (
str
) – The wrap mode (from Material.WrapMode).
- getEmissiveWrapT()¶
Get the emissive wrap T mode of the material.
- setEmissiveWrapT(mode)¶
Set the emissive wrap T mode of the material.
- Parameters:¶
mode (
str
) – The wrap mode (from Material.WrapMode).
- getEmissiveMagFilter()¶
Get the emissive magnification filter of the material.
- setEmissiveMagFilter(filter)¶
Set the emissive magnification filter of the material.
- Parameters:¶
filter (
str
) – The magnification filter mode (from Material.MagFilter).
- getEmissiveMinFilter()¶
Get the emissive minification filter of the material.
- setEmissiveMinFilter(filter)¶
Set the emissive minification filter of the material.
- Parameters:¶
filter (
str
) – The minification filter mode (from Material.MinFilter).
- getEmissiveAnisotropy()¶
Get the emissive anisotropy mode of the material.
- setEmissiveAnisotropy(anisotropy)¶
Set the emissive anisotropy mode of the material.
- Parameters:¶
anisotropy (
str
) – The anisotropy mode (from Material.Anisotropy).
- getSheenAmount()¶
Get the sheen amount of the material.
- setSheenAmount(amount)¶
Set the sheen amount of the material.
- Parameters:¶
amount (
number
) – The sheen value.
- getSheenRoughness()¶
Get the sheen roughness value of the material.
- setSheenRoughness(amount)¶
Set the sheen roughness value of the material.
- Parameters:¶
amount (
number
) – The sheen roughness value.
- getSheenRoughnessMap()¶
Get the sheen roughness map of the material.
- setSheenRoughnessMap(texture)¶
Set the sheen roughness map of the material.
- getSheenRoughnessWrapS()¶
Get the sheen roughness wrap S mode of the material.
- setSheenRoughnessWrapS(mode)¶
Set the sheen roughness wrap S mode of the material.
- Parameters:¶
mode (
str
) – The wrap mode (from Material.WrapMode).
- getSheenRoughnessWrapT()¶
Get the sheen roughness wrap T mode of the material.
- setSheenRoughnessWrapT(mode)¶
Set the sheen roughness wrap T mode of the material.
- Parameters:¶
mode (
str
) – The wrap mode (from Material.WrapMode).
- getSheenRoughnessMagFilter()¶
Get the sheen roughness magnification filter of the material.
- setSheenRoughnessMagFilter(filter)¶
Set the sheen roughness magnification filter of the material.
- Parameters:¶
filter (
str
) – The magnification filter mode (from Material.MagFilter).
- getSheenRoughnessMinFilter()¶
Get the sheen roughness minification filter of the material.
- setSheenRoughnessMinFilter(filter)¶
Set the sheen roughness minification filter of the material.
- Parameters:¶
filter (
str
) – The minification filter mode (from Material.MinFilter).
- getSheenRoughnessAnisotropy()¶
Get the sheen roughness anisotropy mode of the material.
- setSheenRoughnessAnisotropy(anisotropy)¶
Set the sheen roughness anisotropy mode of the material.
- Parameters:¶
anisotropy (
str
) – The anisotropy mode (from Material.Anisotropy).
- getSheenColor()¶
Get the sheen color of the material.
- setSheenColor(color)¶
Set the sheen color of the material.
- getSheenColorMap()¶
Get the sheen color map of the material.
- setSheenColorMap(texture)¶
Set the sheen color map of the material.
- getSheenColorWrapS()¶
Get the sheen color wrap S mode of the material.
- setSheenColorWrapS(mode)¶
Set the sheen color wrap S mode of the material.
- Parameters:¶
mode (
str
) – The wrap mode (from Material.WrapMode).
- getSheenColorWrapT()¶
Get the sheen color wrap T mode of the material.
- setSheenColorWrapT(mode)¶
Set the sheen color wrap T mode of the material.
- Parameters:¶
mode (
str
) – The wrap mode (from Material.WrapMode).
- getSheenColorMagFilter()¶
Get the sheen color magnification filter of the material.
- setSheenColorMagFilter(filter)¶
Set the sheen color magnification filter of the material.
- Parameters:¶
filter (
str
) – The magnification filter mode (from Material.MagFilter).
- getSheenColorMinFilter()¶
Get the sheen color minification filter of the material.
- setSheenColorMinFilter(filter)¶
Set the sheen color minification filter of the material.
- Parameters:¶
filter (
str
) – The minification filter mode (from Material.MinFilter).
- getSheenColorAnisotropy()¶
Get the sheen color anisotropy mode of the material.
- setSheenColorAnisotropy(anisotropy)¶
Set the sheen color anisotropy mode of the material.
- Parameters:¶
anisotropy (
str
) – The anisotropy mode (from Material.Anisotropy).
- getNormalMap()¶
Get the normal map texture of the material.
- setNormalMap(texture)¶
Set the normal map texture of the material.
- getNormalScale()¶
Get the normal scale value of the material.
- setNormalScale(scale)¶
Set the normal scale value of the material.
- Parameters:¶
scale (
number
) – The normal scale value.
- getNormalType()¶
Get the normal type of the material.
- setNormalType(type)¶
Set the normal type of the material.
- Parameters:¶
type (
str
) – The normal type (from Material.NormalType).
- getNormalWrapS()¶
Get the normal wrap S mode of the material.
- setNormalWrapS(mode)¶
Set the normal wrap S mode of the material.
- Parameters:¶
mode (
str
) – The wrap mode (from Material.WrapMode).
- getNormalWrapT()¶
Get the normal wrap T mode of the material.
- setNormalWrapT(mode)¶
Set the normal wrap T mode of the material.
- Parameters:¶
mode (
str
) – The wrap mode (from Material.WrapMode).
- getNormalMagFilter()¶
Get the normal magnification filter of the material.
- setNormalMagFilter(filter)¶
Set the normal magnification filter of the material.
- Parameters:¶
filter (
str
) – The magnification filter mode (from Material.MagFilter).
- getNormalMinFilter()¶
Get the normal minification filter of the material.
- setNormalMinFilter(filter)¶
Set the normal minification filter of the material.
- Parameters:¶
filter (
str
) – The minification filter mode (from Material.MinFilter).
- getNormalAnisotropy()¶
Get the normal anisotropy mode of the material.
- setNormalAnisotropy(anisotropy)¶
Set the normal anisotropy mode of the material.
- Parameters:¶
anisotropy (
str
) – The anisotropy mode (from Material.Anisotropy).
- getRoughnessIntensity()¶
Get the roughness intensity value of the material.
- setRoughnessIntensity(amount)¶
Set the roughness intensity value of the material.
- Parameters:¶
amount (
number
) – The roughness intensity value.
- getRoughnessMap()¶
Get the roughness map texture of the material.
- setRoughnessMap(texture)¶
Set the roughness map texture of the material.
- getRoughnessWrapS()¶
Get the roughness wrap S mode of the material.
- setRoughnessWrapS(mode)¶
Set the roughness wrap S mode of the material.
- Parameters:¶
mode (
str
) – The wrap mode (from Material.WrapMode).
- getRoughnessWrapT()¶
Get the roughness wrap T mode of the material.
- setRoughnessWrapT(mode)¶
Set the roughness wrap T mode of the material.
- Parameters:¶
mode (
str
) – The wrap mode (from Material.WrapMode).
- getRoughnessMagFilter()¶
Get the roughness magnification filter of the material.
- setRoughnessMagFilter(filter)¶
Set the roughness magnification filter of the material.
- Parameters:¶
filter (
str
) – The magnification filter mode (from Material.MagFilter).
- getRoughnessMinFilter()¶
Get the roughness minification filter of the material.
- setRoughnessMinFilter(filter)¶
Set the roughness minification filter of the material.
- Parameters:¶
filter (
str
) – The minification filter mode (from Material.MinFilter).
- getRoughnessAnisotropy()¶
Get the roughness anisotropy mode of the material.
- setRoughnessAnisotropy(anisotropy)¶
Set the roughness anisotropy mode of the material.
- Parameters:¶
anisotropy (
str
) – The anisotropy mode (from Material.Anisotropy).
- getMetalnessIntensity()¶
Get the metalness intensity value of the material.
- setMetalnessIntensity(amount)¶
Set the metalness intensity value of the material.
- Parameters:¶
amount (
number
) – The metalness intensity value.
- getMetalnessMap()¶
Get the metalness map texture of the material.
- setMetalnessMap(texture)¶
Set the metalness map texture of the material.
- getMetalnessWrapS()¶
Get the metalness wrap S mode of the material.
- setMetalnessWrapS(mode)¶
Set the metalness wrap S mode of the material.
- Parameters:¶
mode (
str
) – The wrap mode (from Material.WrapMode).
- getMetalnessWrapT()¶
Get the metalness wrap T mode of the material.
- setMetalnessWrapT(mode)¶
Set the metalness wrap T mode of the material.
- Parameters:¶
mode (
str
) – The wrap mode (from Material.WrapMode).
- getMetalnessMagFilter()¶
Get the metalness magnification filter of the material.
- setMetalnessMagFilter(filter)¶
Set the metalness magnification filter of the material.
- Parameters:¶
filter (
str
) – The magnification filter mode (from Material.MagFilter).
- getMetalnessMinFilter()¶
Get the metalness minification filter of the material.
- setMetalnessMinFilter(filter)¶
Set the metalness minification filter of the material.
- Parameters:¶
filter (
str
) – The minification filter mode (from Material.MinFilter).
- getMetalnessAnisotropy()¶
Get the metalness anisotropy mode of the material.
- setMetalnessAnisotropy(anisotropy)¶
Set the metalness anisotropy mode of the material.
- Parameters:¶
anisotropy (
str
) – The anisotropy mode (from Material.Anisotropy).
- getSpecularIntensity()¶
Get the specular intensity value of the material.
- setSpecularIntensity(amount)¶
Set the specular intensity value of the material.
- Parameters:¶
amount (
number
) – The specular intensity value.
- getSpecularIntensityMap()¶
Get the specular intensity map texture of the material.
- setSpecularIntensityMap(texture)¶
Set the specular intensity map texture of the material.
- getSpecularIntensityWrapS()¶
Get the specular intensity wrap S mode of the material.
- setSpecularIntensityWrapS(mode)¶
Set the specular intensity wrap S mode of the material.
- Parameters:¶
mode (
str
) – The wrap mode (from Material.WrapMode).
- getSpecularIntensityWrapT()¶
Get the specular intensity wrap T mode of the material.
- setSpecularIntensityWrapT(mode)¶
Set the specular intensity wrap T mode of the material.
- Parameters:¶
mode (
str
) – The wrap mode (from Material.WrapMode).
- getSpecularIntensityMagFilter()¶
Get the specular intensity magnification filter of the material.
- setSpecularIntensityMagFilter(filter)¶
Set the specular intensity magnification filter of the material.
- Parameters:¶
filter (
str
) – The magnification filter mode (from Material.MagFilter).
- getSpecularIntensityMinFilter()¶
Get the specular intensity minification filter of the material.
- setSpecularIntensityMinFilter(filter)¶
Set the specular intensity minification filter of the material.
- Parameters:¶
filter (
str
) – The minification filter mode (from Material.MinFilter).
- getSpecularIntensityAnisotropy()¶
Get the specular intensity anisotropy mode of the material.
- setSpecularIntensityAnisotropy(anisotropy)¶
Set the specular intensity anisotropy mode of the material.
- Parameters:¶
anisotropy (
str
) – The anisotropy mode (from Material.Anisotropy).
- getSpecularColor()¶
Get the specular color of the material.
- setSpecularColor(color)¶
Set the specular color of the material.
- Parameters:¶
color (
str
) – The specular color value.
- getSpecularColorMap()¶
Get the specular color map texture of the material.
- setSpecularColorMap(texture)¶
Set the specular color map texture of the material.
- getSpecularColorWrapS()¶
Get the specular color wrap S mode of the material.
- setSpecularColorWrapS(mode)¶
Set the specular color wrap S mode of the material.
- Parameters:¶
mode (
str
) – The wrap mode (from Material.WrapMode).
- getSpecularColorWrapT()¶
Get the specular color wrap T mode of the material.
- setSpecularColorWrapT(mode)¶
Set the specular color wrap T mode of the material.
- Parameters:¶
mode (
str
) – The wrap mode (from Material.WrapMode).
- getSpecularColorMagFilter()¶
Get the specular color magnification filter of the material.
- setSpecularColorMagFilter(filter)¶
Set the specular color magnification filter of the material.
- Parameters:¶
filter (
str
) – The magnification filter mode (from Material.MagFilter).
- getSpecularColorMinFilter()¶
Get the specular color minification filter of the material.
- setSpecularColorMinFilter(filter)¶
Set the specular color minification filter of the material.
- Parameters:¶
filter (
str
) – The minification filter mode (from Material.MinFilter).
- getSpecularColorAnisotropy()¶
Get the specular color anisotropy mode of the material.
- setSpecularColorAnisotropy(anisotropy)¶
Set the specular color anisotropy mode of the material.
- Parameters:¶
anisotropy (
str
) – The anisotropy mode (from Material.Anisotropy).
- getAmbientOcclusionMap()¶
Get the ambient occlusion map texture of the material.
- setAmbientOcclusionMap(texture)¶
Set the ambient occlusion map texture of the material.
- getAmbientOcclusionIntensity()¶
Get the ambient occlusion intensity of the material.
- setAmbientOcclusionIntensity(amount)¶
Set the ambient occlusion intensity of the material.
- Parameters:¶
amount (
str
) – The ambient occlusion intensity value.
- getAmbientOcclusionWrapS()¶
Get the ambient occlusion wrap S mode of the material.
- setAmbientOcclusionWrapS(mode)¶
Set the ambient occlusion wrap S mode of the material.
- Parameters:¶
mode (
str
) – The wrap mode (from Material.WrapMode).
- getAmbientOcclusionWrapT()¶
Get the ambient occlusion wrap T mode of the material.
- setAmbientOcclusionWrapT(mode)¶
Set the ambient occlusion wrap T mode of the material.
- Parameters:¶
mode (
str
) – The wrap mode (from Material.WrapMode).
- getAmbientOcclusionMagFilter()¶
Get the ambient occlusion magnification filter of the material.
- setAmbientOcclusionMagFilter(filter)¶
Set the ambient occlusion magnification filter of the material.
- Parameters:¶
filter (
str
) – The magnification filter mode (from Material.MagFilter).
- getAmbientOcclusionMinFilter()¶
Get the ambient occlusion minification filter of the material.
- setAmbientOcclusionMinFilter(filter)¶
Set the ambient occlusion minification filter of the material.
- Parameters:¶
filter (
str
) – The minification filter mode (from Material.MinFilter).
- getAmbientOcclusionAnisotropy()¶
Get the ambient occlusion anisotropy mode of the material.
- setAmbientOcclusionAnisotropy(anisotropy)¶
Set the ambient occlusion anisotropy mode of the material.
- Parameters:¶
anisotropy (
str
) – The anisotropy mode (from Material.Anisotropy).
- getClearcoatLevel()¶
Get the clearcoat level of the material.
- setClearcoatLevel(amount)¶
Set the clearcoat level of the material.
- Parameters:¶
amount (
str
) – The clearcoat level value.
- getClearcoatMap()¶
Get the clearcoat map texture of the material.
- setClearcoatMap(texture)¶
Set the clearcoat map texture of the material.
- getClearcoatWrapS()¶
Get the clearcoat wrap S mode of the material.
- setClearcoatWrapS(mode)¶
Set the clearcoat wrap S mode of the material.
- Parameters:¶
mode (
str
) – The wrap mode (from Material.WrapMode).
- getClearcoatWrapT()¶
Get the clearcoat wrap T mode of the material.
- setClearcoatWrapT(mode)¶
Set the clearcoat wrap T mode of the material.
- Parameters:¶
mode (
str
) – The wrap mode (from Material.WrapMode).
- getClearcoatMagFilter()¶
Get the clearcoat magnification filter of the material.
- setClearcoatMagFilter(filter)¶
Set the clearcoat magnification filter of the material.
- Parameters:¶
filter (
str
) – The magnification filter mode (from Material.MagFilter).
- getClearcoatMinFilter()¶
Get the clearcoat minification filter of the material.
- setClearcoatMinFilter(filter)¶
Set the clearcoat minification filter of the material.
- Parameters:¶
filter (
str
) – The minification filter mode (from Material.MinFilter).
- getClearcoatAnisotropy()¶
Get the clearcoat anisotropy mode of the material.
- setClearcoatAnisotropy(anisotropy)¶
Set the clearcoat anisotropy mode of the material.
- Parameters:¶
anisotropy (
str
) – The anisotropy mode (from Material.Anisotropy).
- getClearcoatNormalMap()¶
Get the clearcoat normal map texture of the material.
- setClearcoatNormalMap(texture)¶
Set the clearcoat normal map texture of the material.
- getClearcoatNormalScale()¶
Get the clearcoat normal scale of the material.
- setClearcoatNormalScale(scale)¶
Set the clearcoat normal scale of the material.
- Parameters:¶
scale (
number
) – The clearcoat normal scale value.
- getClearcoatNormalWrapS()¶
Get the clearcoat normal wrap S mode of the material.
- setClearcoatNormalWrapS(mode)¶
Set the clearcoat normal wrap S mode of the material.
- Parameters:¶
mode (
str
) – The wrap mode (from Material.WrapMode).
- getClearcoatNormalWrapT()¶
Get the clearcoat normal wrap T mode of the material.
- setClearcoatNormalWrapT(mode)¶
Set the clearcoat normal wrap T mode of the material.
- Parameters:¶
mode (
str
) – The wrap mode (from Material.WrapMode).
- getClearcoatNormalMagFilter()¶
Get the clearcoat normal magnification filter of the material.
- setClearcoatNormalMagFilter(filter)¶
Set the clearcoat normal magnification filter of the material.
- Parameters:¶
filter (
str
) – The magnification filter mode (from Material.MagFilter).
- getClearcoatNormalMinFilter()¶
Get the clearcoat normal minification filter of the material.
- setClearcoatNormalMinFilter(filter)¶
Set the clearcoat normal minification filter of the material.
- Parameters:¶
filter (
str
) – The minification filter mode (from Material.MinFilter).
- getClearcoatNormalAnisotropy()¶
Get the clearcoat normal anisotropy mode of the material.
- setClearcoatNormalAnisotropy(anisotropy)¶
Set the clearcoat normal anisotropy mode of the material.
- Parameters:¶
anisotropy (
str
) – The anisotropy mode (from Material.Anisotropy).
- getClearcoatRoughnessMap()¶
Get the clearcoat roughness map texture of the material.
- setClearcoatRoughnessMap(texture)¶
Set the clearcoat roughness map texture of the material.
- getClearcoatRoughnessIntensity()¶
Get the clearcoat roughness intensity of the material.
- setClearcoatRoughnessIntensity(amount)¶
Set the clearcoat roughness intensity of the material.
- Parameters:¶
amount (
number
) – The clearcoat roughness intensity value.
- getClearcoatRoughnessWrapS()¶
Get the clearcoat roughness wrap S mode of the material.
- setClearcoatRoughnessWrapS(mode)¶
Set the clearcoat roughness wrap S mode of the material.
- Parameters:¶
mode (
str
) – The wrap mode (from Material.WrapMode).
- getClearcoatRoughnessWrapT()¶
Get the clearcoat roughness wrap T mode of the material.
- setClearcoatRoughnessWrapT(mode)¶
Set the clearcoat roughness wrap T mode of the material.
- Parameters:¶
mode (
str
) – The wrap mode (from Material.WrapMode).
- getClearcoatRoughnessMagFilter()¶
Get the clearcoat roughness magnification filter of the material.
- setClearcoatRoughnessMagFilter(filter)¶
Set the clearcoat roughness magnification filter of the material.
- Parameters:¶
filter (
str
) – The magnification filter mode (from Material.MagFilter).
- getClearcoatRoughnessMinFilter()¶
Get the clearcoat roughness minification filter of the material.
- setClearcoatRoughnessMinFilter(filter)¶
Set the clearcoat roughness minification filter of the material.
- Parameters:¶
filter (
str
) – The minification filter mode (from Material.MinFilter).
- getClearcoatRoughnessAnisotropy()¶
Get the clearcoat roughness anisotropy mode of the material.
- setClearcoatRoughnessAnisotropy(anisotropy)¶
Set the clearcoat roughness anisotropy mode of the material.
- Parameters:¶
anisotropy (
str
) – The anisotropy mode (from Material.Anisotropy).
- getReflectivity()¶
Get the reflectivity of the material.
- setReflectivity(value)¶
Set the reflectivity of the material.
- Parameters:¶
value (
number
) – The reflectivity value.
- getIndexOfRefraction()¶
Get the index of refraction of the material.
- setIndexOfRefraction(value)¶
Set the index of refraction of the material.
- Parameters:¶
value (
number
) – The index of refraction value.
- getEnvironmentMap()¶
Get the environment map texture of the material.
- setEnvironmentMap(texture)¶
Set the environment map texture of the material.
- getEnvironmentIntensity()¶
Get the environment intensity of the material.
- setEnvironmentIntensity(amount)¶
Set the environment intensity of the material.
- Parameters:¶
amount (
number
) – The environment intensity value.
- getThickness()¶
Get the thickness value of the material.
- setThickness(amount)¶
Set the thickness value of the material.
- Parameters:¶
amount (
number
) – The thickness value.
- getThicknessMap()¶
Get the thickness map texture of the material.
- setThicknessMap(texture)¶
Set the thickness map texture of the material.
- Parameters:¶
texture (
str
) – The texture to use as the thickness map.
- getThicknessWrapS()¶
Get the wrap mode for the S axis of the thickness texture.
- setThicknessWrapS(mode)¶
Set the wrap mode for the S axis of the thickness texture.
- Parameters:¶
mode (
str
) – The wrap mode for the S axis.
- getThicknessWrapT()¶
Get the wrap mode for the T axis of the thickness texture.
- setThicknessWrapT(mode)¶
Set the wrap mode for the T axis of the thickness texture.
- Parameters:¶
mode (
str
) – The wrap mode for the T axis.
- getThicknessMagFilter()¶
Get the magnification filter for the thickness texture.
- setThicknessMagFilter(filter)¶
Set the magnification filter for the thickness texture.
- Parameters:¶
filter (
str
) – The magnification filter.
- getThicknessMinFilter()¶
Get the minification filter for the thickness texture.
- setThicknessMinFilter(filter)¶
Set the minification filter for the thickness texture.
- Parameters:¶
filter (
str
) – The minification filter.
- getThicknessAnisotropy()¶
Get the anisotropy level for the thickness texture.
- setThicknessAnisotropy(anisotropy)¶
Set the anisotropy level for the thickness texture.
- Parameters:¶
anisotropy (
str
) – The anisotropy level.
- getDisplacementMap()¶
Get the displacement map texture of the material.
- setDisplacementMap(texture)¶
Set the displacement map texture of the material.
- Parameters:¶
texture (
str
) – The texture to use as the displacement map.
- getDisplacementScale()¶
Get the displacement scale of the material.
- setDisplacementScale(amount)¶
Set the displacement scale of the material.
- Parameters:¶
amount (
number
) – The displacement scale value.
- getDisplacementBias()¶
Get the displacement bias of the material.
- setDisplacementBias(amount)¶
Set the displacement bias of the material.
- Parameters:¶
amount (
number
) – The displacement bias value.
- getDisplacementWrapS()¶
Get the wrap mode for the S axis of the displacement texture.
- setDisplacementWrapS(mode)¶
Set the wrap mode for the S axis of the displacement texture.
- Parameters:¶
mode (
str
) – The wrap mode for the S axis.
- getDisplacementWrapT()¶
Get the wrap mode for the T axis of the displacement texture.
- setDisplacementWrapT(mode)¶
Set the wrap mode for the T axis of the displacement texture.
- Parameters:¶
mode (
str
) – The wrap mode for the T axis.
- getDisplacementMagFilter()¶
Get the magnification filter for the displacement texture.
- setDisplacementMagFilter(filter)¶
Set the magnification filter for the displacement texture.
- Parameters:¶
filter (
str
) – The magnification filter.
- getDisplacementMinFilter()¶
Get the minification filter for the displacement texture.
- setDisplacementMinFilter(filter)¶
Set the minification filter for the displacement texture.
- Parameters:¶
filter (
str
) – The minification filter.
- getDisplacementAnisotropy()¶
Get the anisotropy level for the displacement texture.
- setDisplacementAnisotropy(anisotropy)¶
Set the anisotropy level for the displacement texture.
- Parameters:¶
anisotropy (
str
) – The anisotropy level.
- getTransmissionMap()¶
Get the transmission map texture of the material.
- setTransmissionMap(texture)¶
Set the transmission map texture of the material.
- Parameters:¶
texture (
str
) – The texture to use as the transmission map.
- getTransmission()¶
Get the transmission value of the material.
- setTransmission(amount)¶
Set the transmission value of the material.
- Parameters:¶
amount (
number
) – The transmission value to set.
- getTransmissionWrapS()¶
Get the wrap mode for the S axis of the transmission texture.
- setTransmissionWrapS(mode)¶
Set the wrap mode for the S axis of the transmission texture.
- Parameters:¶
mode (
str
) – The wrap mode for the S axis.
- getTransmissionWrapT()¶
Get the wrap mode for the T axis of the transmission texture.
- setTransmissionWrapT(mode)¶
Set the wrap mode for the T axis of the transmission texture.
- Parameters:¶
mode (
str
) – The wrap mode for the T axis.
- getTransmissionMagFilter()¶
Get the magnification filter for the transmission texture.
- setTransmissionMagFilter(filter)¶
Set the magnification filter for the transmission texture.
- Parameters:¶
filter (
str
) – The magnification filter.
- getTransmissionMinFilter()¶
Get the minification filter for the transmission texture.
- setTransmissionMinFilter(filter)¶
Set the minification filter for the transmission texture.
- Parameters:¶
filter (
str
) – The minification filter.
- getTransmissionAnisotropy()¶
Get the anisotropy level for the transmission texture.
- setTransmissionAnisotropy(anisotropy)¶
Set the anisotropy level for the transmission texture.
- Parameters:¶
anisotropy (
str
) – The anisotropy level.
- getBlending()¶
Get the blending status of the material.
- setBlending(enabled)¶
Enable or disable blending for the material.
- Parameters:¶
enabled (
boolean
) – True to enable blending, false to disable.
- getBlendSource()¶
Get the source factor for the blending equation.
- setBlendSource(value)¶
Set the source factor for the blending equation.
- Parameters:¶
value (
str
) – The source factor for the blending equation. (from Material.BlendSource)
- getBlendDest()¶
Get the destination factor for the blending equation.
- setBlendDest(value)¶
Set the destination factor for the blending equation.
- Parameters:¶
value (
str
) – The destination factor for the blending equation. (from Material.BlendDest)
- getBlendEquation()¶
Get the equation to use for blending.
- setBlendEquation(value)¶
Set the equation to use for blending.
- Parameters:¶
value (
str
) – The equation to use for blending. (from Material.BlendEquation)
- getDepthTest()¶
Get the depth test status for the material.
- setDepthTest(enabled)¶
Enable or disable depth testing for the material.
- Parameters:¶
enabled (
boolean
) – True to enable depth testing, false to disable.
- getDepthMode()¶
Get the depth mode for the material.
- setDepthMode(mode)¶
Set the depth mode for the material.
- Parameters:¶
mode (
str
) – The desired depth mode for the material.
- getCulling()¶
Get the culling mode for the material.
- setCulling(mode)¶
Set the culling mode for the material.
- Parameters:¶
mode (
str
) – The desired culling mode for the material.
- getPoints()¶
Check if the material is set to render as points.
- setPoints(enabled)¶
Enable or disable rendering the material as points.
- Parameters:¶
enabled (
boolean
) – True to render as points, false otherwise.
- getPointSize()¶
Get the point size for the material when rendering as points.
- setPointSize(size)¶
Set the point size for the material when rendering as points.
- Parameters:¶
size (
number
) – The desired point size.
- getPointSizeAttenuation()¶
Check if point size attenuation is enabled for the material.
- setPointSizeAttenuation(enabled)¶
Enable or disable point size attenuation for the material.
- Parameters:¶
enabled (
boolean
) – True to enable point size attenuation, false to disable.
- getVertexColors()¶
Check if point vertex colors are enabled for the material.
- setVertexColors(enabled)¶
Enable or disable vertex colors for the material.
- Parameters:¶
enabled (
boolean
) – True to enable vertex colors, false to disable.
- getFlatShading()¶
Check if flat shading is enabled for the material.