Package com.jme3.post

Class Filter.Pass

java.lang.Object
com.jme3.post.Filter.Pass
Enclosing class:
Filter

public class Filter.Pass extends Object
Passes are like filters within filters. Some filters will need multiple passes before the final render.
  • Field Details

    • renderFrameBuffer

      protected FrameBuffer renderFrameBuffer
    • renderedTexture

      protected Texture2D renderedTexture
    • depthTexture

      protected Texture2D depthTexture
    • passMaterial

      protected Material passMaterial
    • name

      protected String name
  • Constructor Details

    • Pass

      public Pass(String name)
    • Pass

      public Pass()
  • Method Details

    • init

      public void init(Renderer renderer, int width, int height, Image.Format textureFormat, Image.Format depthBufferFormat, int numSamples, boolean renderDepth)
      init the pass called internally
      Parameters:
      renderer - (not null)
      width - the width (in pixels, ≥0)
      height - the height (in pixels, ≥0)
      textureFormat - format of the rendered texture
      depthBufferFormat - format of the depth buffer
      numSamples - the number of samples per pixel (for multisampling)
      renderDepth - true to create a depth texture, false for none
    • init

      public void init(Renderer renderer, int width, int height, Image.Format textureFormat, Image.Format depthBufferFormat)
      init the pass called internally
      Parameters:
      renderer - (not null)
      width - the image width (in pixels, ≥0)
      height - the image height (in pixels, ≥0)
      textureFormat - the format of the rendered texture
      depthBufferFormat - the format of the depth buffer
    • init

      public void init(Renderer renderer, int width, int height, Image.Format textureFormat, Image.Format depthBufferFormat, int numSamples)
    • init

      public void init(Renderer renderer, int width, int height, Image.Format textureFormat, Image.Format depthBufferFormat, int numSample, Material material)
      init the pass called internally
      Parameters:
      renderer - (not null)
      width - the image width (in pixels, ≥0)
      height - the image height (in pixels, ≥0)
      textureFormat - the format of the rendered texture
      depthBufferFormat - the format of the depth buffer
      numSample - the number of samples per pixel (for multisampling)
      material - the Material for this pass
    • requiresSceneAsTexture

      public boolean requiresSceneAsTexture()
    • requiresDepthAsTexture

      public boolean requiresDepthAsTexture()
    • beforeRender

      public void beforeRender()
    • getRenderFrameBuffer

      public FrameBuffer getRenderFrameBuffer()
    • setRenderFrameBuffer

      public void setRenderFrameBuffer(FrameBuffer renderFrameBuffer)
    • getDepthTexture

      public Texture2D getDepthTexture()
    • getRenderedTexture

      public Texture2D getRenderedTexture()
    • setRenderedTexture

      public void setRenderedTexture(Texture2D renderedTexture)
    • getPassMaterial

      public Material getPassMaterial()
    • setPassMaterial

      public void setPassMaterial(Material passMaterial)
    • cleanup

      public void cleanup(Renderer r)
    • toString

      public String toString()
      Overrides:
      toString in class Object