public class ShaderMaterial extends Material
ShaderMaterial uses ShaderTechnique to describe the concrete rendering details,
and the most suitable one will be used according to the final rendering platform.
For example, your ShaderMaterial instance can have two technique, one is defined by HLSL, and another is defined by GLSL
Under non-window platform the GLSL should be used instead of HLSLMAP_AMBIENT, MAP_DIFFUSE, MAP_EMISSIVE, MAP_NORMAL, MAP_SPECULARname, properties| Constructor and Description |
|---|
ShaderMaterial()
Initializes a new instance of the
ShaderMaterial class. |
ShaderMaterial(java.lang.String name)
Initializes a new instance of the
ShaderMaterial class. |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<ShaderTechnique> |
getTechniques()
Gets all available techniques defined in this material.
|
getTexture, iterator, setTexture, toStringfindProperty, getName, getProperties, getProperty, removeProperty, removeProperty, setName, setPropertypublic ShaderMaterial()
ShaderMaterial class.public ShaderMaterial(java.lang.String name)
ShaderMaterial class.name - Namepublic java.util.List<ShaderTechnique> getTechniques()