@JsType(isNative=true, namespace="Cesium", name="ModelMaterial") public class ModelMaterial extends Object
Constructor and Description |
---|
ModelMaterial()
Use
Model.getMaterial(java.lang.String) to create an instance. |
Modifier and Type | Method and Description |
---|---|
Object |
getValue(String name)
Returns the value of the parameter with the given name.
|
String |
id()
The name of the glTF JSON property for this material.
|
String |
name()
The value of the name property of this material.
|
void |
setValue(String name)
Assigns a value to a material parameter.
|
void |
setValue(String name,
Object value)
Assigns a value to a material parameter.
|
@JsConstructor public ModelMaterial()
Model.getMaterial(java.lang.String)
to create an instance.@JsProperty(name="id") public String id()
name()
,
which is assigned by the artist when the asset is created.@JsProperty(name="name") public String name()
id()
, which is internal to glTF.@JsMethod public Object getValue(String name)
name
- The name of the parameter.@JsMethod public void setValue(String name)
name
- The name of the parameter.@JsMethod public void setValue(String name, Object value)
name
- The name of the parameter.value
- The value to assign to the parameter.Copyright © 2019. All rights reserved.