Package com.aspose.threed
Class ShaderMaterial
- java.lang.Object
-
- com.aspose.threed.A3DObject
-
- com.aspose.threed.Material
-
- com.aspose.threed.ShaderMaterial
-
- All Implemented Interfaces:
INamedObject
,java.lang.Iterable<TextureSlot>
public class ShaderMaterial extends Material
A shader material allows to describe the material by external rendering engine or shader language.ShaderMaterial
usesShaderTechnique
to describe the concrete rendering details, and the most suitable one will be used according to the final rendering platform. For example, yourShaderMaterial
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 HLSL
-
-
Field Summary
-
Fields inherited from class com.aspose.threed.Material
MAP_AMBIENT, MAP_DIFFUSE, MAP_EMISSIVE, MAP_NORMAL, MAP_SPECULAR
-
Fields inherited from class com.aspose.threed.A3DObject
name, properties
-
-
Constructor Summary
Constructors Constructor Description ShaderMaterial()
Initializes a new instance of theShaderMaterial
class.ShaderMaterial(java.lang.String name)
Initializes a new instance of theShaderMaterial
class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<ShaderTechnique>
getTechniques()
Gets all available techniques defined in this material.-
Methods inherited from class com.aspose.threed.Material
getTexture, iterator, setTexture, toString
-
Methods inherited from class com.aspose.threed.A3DObject
findProperty, getName, getProperties, getProperty, removeProperty, removeProperty, setName, setProperty
-
-
-
-
Constructor Detail
-
ShaderMaterial
public ShaderMaterial()
Initializes a new instance of theShaderMaterial
class.
-
ShaderMaterial
public ShaderMaterial(java.lang.String name)
Initializes a new instance of theShaderMaterial
class.- Parameters:
name
- Name
-
-
Method Detail
-
getTechniques
public java.util.List<ShaderTechnique> getTechniques()
Gets all available techniques defined in this material.
-
-