Class Technique

java.lang.Object
com.jme3.material.Technique

public final class Technique extends Object
Represents a technique instance.
  • Constructor Details

    • Technique

      public Technique(Material owner, TechniqueDef def)
      Creates a new technique instance that implements the given technique definition.
      Parameters:
      owner - The material that will own this technique
      def - The technique definition being implemented.
  • Method Details

    • getDef

      public TechniqueDef getDef()
      Returns the technique definition that is implemented by this technique instance.
      Returns:
      the technique definition that is implemented by this technique instance.
    • getDynamicDefines

      public DefineList getDynamicDefines()
      Get the DefineList for dynamic defines. Dynamic defines are used to implement material parameter -- define bindings as well as TechniqueDefLogic specific functionality.
      Returns:
      all dynamic defines.
    • getAllDefines

      @Deprecated public DefineList getAllDefines()
      Deprecated.
      Preset defines are precompiled into TechniqueDef.getShaderPrologue(), whereas dynamic defines are available via getDynamicDefines().
      Returns:
      nothing.
    • getSortId

      public int getSortId()
      Compute the sort ID. Similar to Object.hashCode() but used for sorting geometries for rendering.
      Returns:
      the sort ID for this technique instance.