Package com.jme3.material
Class Technique
java.lang.Object
com.jme3.material.Technique
Represents a technique instance.
-
Constructor Summary
ConstructorDescriptionTechnique
(Material owner, TechniqueDef def) Creates a new technique instance that implements the given technique definition. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.getDef()
Returns the technique definition that is implemented by this technique instance.Get theDefineList
for dynamic defines.int
Compute the sort ID.
-
Constructor Details
-
Technique
Creates a new technique instance that implements the given technique definition.- Parameters:
owner
- The material that will own this techniquedef
- The technique definition being implemented.
-
-
Method Details
-
getDef
Returns the technique definition that is implemented by this technique instance.- Returns:
- the technique definition that is implemented by this technique instance.
-
getDynamicDefines
Get theDefineList
for dynamic defines. Dynamic defines are used to implement material parameter -- define bindings as well asTechniqueDefLogic
specific functionality.- Returns:
- all dynamic defines.
-
getAllDefines
Deprecated.Preset defines are precompiled intoTechniqueDef.getShaderPrologue()
, whereas dynamic defines are available viagetDynamicDefines()
.- Returns:
- nothing.
-
getSortId
public int getSortId()Compute the sort ID. Similar toObject.hashCode()
but used for sorting geometries for rendering.- Returns:
- the sort ID for this technique instance.
-
TechniqueDef.getShaderPrologue()
, whereas dynamic defines are available viagetDynamicDefines()
.