public final class Technique
extends java.lang.Object
Constructor and Description |
---|
Technique(Material owner,
TechniqueDef def)
Creates a new technique instance that implements the given
technique definition.
|
Modifier and Type | Method and Description |
---|---|
DefineList |
getAllDefines()
Deprecated.
Preset defines are precompiled into
TechniqueDef.getShaderPrologue() , whereas dynamic defines are
available via getDynamicDefines() . |
TechniqueDef |
getDef()
Returns the technique definition that is implemented by this technique
instance.
|
DefineList |
getDynamicDefines()
Get the
DefineList for dynamic defines. |
int |
getSortId()
Compute the sort ID.
|
public Technique(Material owner, TechniqueDef def)
owner
- The material that will own this techniquedef
- The technique definition being implemented.public TechniqueDef getDef()
public DefineList getDynamicDefines()
DefineList
for dynamic defines.
Dynamic defines are used to implement material parameter -- define
bindings as well as TechniqueDefLogic
specific functionality.@Deprecated public DefineList getAllDefines()
TechniqueDef.getShaderPrologue()
, whereas dynamic defines are
available via getDynamicDefines()
.public int getSortId()
Object.hashCode()
but used
for sorting geometries for rendering.