MeshMaterial
esri/geometry/support/MeshMaterial
- new MeshMaterial(properties)
- Parameter:properties Objectoptional
See the properties for a list of all the properties that may be passed into the constructor.
Property Overview
Name | Type | Summary | Class | |
---|---|---|---|---|
Number | Specifies how transparency on the object is handled. more details | more details | MeshMaterial | |
String | Specifies how transparency on the object is handled. more details | more details | MeshMaterial | |
Color | Allows to specify a single, uniform color for the mesh component. more details | more details | MeshMaterial | |
MeshTexture | Allows to specify a texture to get color information from. more details | more details | MeshMaterial | |
String | The name of the class. more details | more details | Accessor | |
Boolean | Specifies whether both sides of each triangle are displayed, or only the front sides. more details | more details | MeshMaterial | |
MeshTexture | Allows to specify a texture to get normal information from. more details | more details | MeshMaterial |
Property Details
- alphaCutoff Number
Specifies how transparency on the object is handled. If
alphaMode
is set to eithermask
orauto
this property specifies the cutoff value below which masking happens (that is, the coresponding part of the Mesh is rendered fully transparent).- Default Value:0.5
- alphaMode String
Specifies how transparency on the object is handled. See also
alphaCutoff
.Type Description opaque Alpha is ignored, and the object is rendered fully opaque. blend Alpha values are used for gradual transparency, blending between the object and its background. mask Alpha values are used for binary transparency, either displaying the object, or its background. See also alphaCutoff
.auto The implementation mixes the mask
andblend
settings, masking belowalphaCutoff
and blending above it.Possible Values:"auto"|"blend"|"opaque"|"mask"
- Default Value:"auto"
Allows to specify a single, uniform color for the mesh component. This can be autocast with a named string, hex string, array of rgb or rgba values, an object with
r
,g
,b
, anda
properties, or a Color object.
- colorTexture MeshTextureautocastAutocasts from Object|HTMLImageElement|HTMLCanvasElement|ImageData|String
Allows to specify a texture to get color information from. The texture is accessed using the uv coordinate specified for each vertex in the mesh vertex attributes.
The name of the class. The declared class name is formatted as
esri.folder.className
.
- doubleSided Boolean
Specifies whether both sides of each triangle are displayed, or only the front sides.
- Default Value:true
- normalTexture MeshTextureautocastAutocasts from Object|HTMLImageElement|HTMLCanvasElement|ImageData|String
Allows to specify a texture to get normal information from. The texture is accessed using the uv coordinate specified for each vertex in the mesh vertex attributes.