Class PBRDepthShader

All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable, IntShader

public class PBRDepthShader extends DepthIntShader
  • Field Details

    • morphTargetsMask

      public final long morphTargetsMask
  • Constructor Details

  • Method Details

    • computeMorphTargetsMask

      protected long computeMorphTargetsMask(IntRenderable renderable)
    • canRender

      public boolean canRender(IntRenderable renderable)
      Description copied from interface: IntShader
      Checks whether this shader is intended to render the IntRenderable. Use this to make sure a call to the IntShader.render(IntRenderable) method will succeed. This is expected to be a fast, non-blocking method. Note that this method will only return true if it is intended to be used. Even when it returns false the IntShader might still be capable of rendering, but it's not preferred to do so.
      Specified by:
      canRender in interface IntShader
      Overrides:
      canRender in class DepthIntShader
      Parameters:
      renderable - The renderable to check against this shader.
      Returns:
      true if this shader is intended to render the IntRenderable, false otherwise.
    • init

      public void init()
      Description copied from interface: IntShader
      Initializes the IntShader, must be called before the IntShader can be used. This typically compiles a ShaderProgram, fetches uniform locations and performs other preparations for usage of the IntShader.
      Specified by:
      init in interface IntShader
      Overrides:
      init in class DefaultIntShader
    • render

      public void render(IntRenderable renderable, Attributes combinedAttributes)
      Overrides:
      render in class DepthIntShader