@JsType(isNative=true, namespace="Cesium", name="Material") public class Material extends Object
Modifier and Type | Field and Description |
---|---|
Object |
materials
Maps sub-material names to Material objects.
|
String |
shaderSource
The glsl shader source for this material.
|
boolean |
translucent
When true or a function that returns true, the geometry is expected to appear translucent.
|
String |
type
The material type.
|
Object |
uniforms
Maps uniform names to their values.
|
Constructor and Description |
---|
Material()
A Material defines surface appearance through a combination of diffuse, specular, normal, emission, and alpha components.
|
Material(MaterialOptions options)
A Material defines surface appearance through a combination of diffuse, specular, normal, emission, and alpha components.
|
Modifier and Type | Method and Description |
---|---|
static String |
AlphaMapType()
Gets the name of the alpha map material.
|
static String |
BumpMapType()
Gets the name of the bump map material.
|
static String |
CheckerboardType()
Gets the name of the checkerboard material.
|
static String |
ColorType()
Gets the name of the color material.
|
static String |
DefaultCubeMapId()
Gets or sets the default cube map texture uniform value.
|
static String |
DefaultImageId()
Gets or sets the default texture uniform value.
|
void |
destroy()
Destroys the WebGL resources held by this object.
|
static String |
DiffuseMapType()
Gets the name of the diffuce map material.
|
static String |
DotType()
Gets the name of the dot material.
|
static String |
EmissionMapType()
Gets the name of the emmision map material.
|
static String |
FadeType()
Gets the name of the fade material.
|
static Material |
fromType(String type)
Creates a new material using an existing material type.
|
static Material |
fromType(String type,
Object uniforms)
Creates a new material using an existing material type.
|
static String |
GridType()
Gets the name of the grid material.
|
static String |
ImageType()
Gets the name of the imagery material.
|
boolean |
isDestroyed()
Returns true if this object was destroyed; otherwise, false.
|
boolean |
isTranslucent()
Gets whether or not this material is translucent.
|
static String |
NormalMapType()
Gets the name of the normal map material.
|
static String |
PolylineArrowType()
Gets the name of the polyline arrow material.
|
static String |
PolylineDashType()
Gets the name of the polyline dash material.
|
static String |
PolylineGlowType()
Gets the name of the polyline glow material.
|
static String |
PolylineOutlineType()
Gets the name of the polyline outline material.
|
static String |
RimLightingType()
Gets the name of the rim lighting material.
|
static String |
SpecularMapType()
Gets the name of the specular map material.
|
static String |
StripeType()
Gets the name of the stripe material.
|
static String |
WaterType()
Gets the name of the water material.
|
@JsProperty public Object materials
@JsProperty public String shaderSource
@JsProperty public boolean translucent
@JsProperty public String type
@JsProperty public Object uniforms
@JsConstructor public Material()
@JsConstructor public Material(MaterialOptions options)
options
- Options@JsProperty(name="AlphaMapType") public static String AlphaMapType()
@JsProperty(name="BumpMapType") public static String BumpMapType()
@JsProperty(name="CheckerboardType") public static String CheckerboardType()
@JsProperty(name="ColorType") public static String ColorType()
@JsProperty(name="DefaultCubeMapId") public static String DefaultCubeMapId()
@JsProperty(name="DefaultImageId") public static String DefaultImageId()
@JsProperty(name="DiffuseMapType") public static String DiffuseMapType()
@JsProperty(name="DotType") public static String DotType()
@JsProperty(name="EmissionMapType") public static String EmissionMapType()
@JsProperty(name="FadeType") public static String FadeType()
@JsProperty(name="GridType") public static String GridType()
@JsProperty(name="ImageType") public static String ImageType()
@JsProperty(name="NormalMapType") public static String NormalMapType()
@JsProperty(name="PolylineArrowType") public static String PolylineArrowType()
@JsProperty(name="PolylineDashType") public static String PolylineDashType()
@JsProperty(name="PolylineGlowType") public static String PolylineGlowType()
@JsProperty(name="PolylineOutlineType") public static String PolylineOutlineType()
@JsProperty(name="RimLightingType") public static String RimLightingType()
@JsProperty(name="SpecularMapType") public static String SpecularMapType()
@JsProperty(name="StripeType") public static String StripeType()
@JsProperty(name="WaterType") public static String WaterType()
@JsMethod public static Material fromType(String type)
type
- The base material type.@JsMethod public static Material fromType(String type, Object uniforms)
type
- The base material type.uniforms
- Overrides for the default uniforms.@JsMethod public void destroy()
isDestroyed()
@JsMethod public boolean isDestroyed()
destroy()
@JsMethod public boolean isTranslucent()
Copyright © 2019. All rights reserved.