Class KHRToneMapFilter

java.lang.Object
com.jme3.post.Filter
com.jme3.post.filters.KHRToneMapFilter
All Implemented Interfaces:
com.jme3.export.Savable

public class KHRToneMapFilter extends com.jme3.post.Filter
Tone-mapping filter that uses khronos neutral pbr tone mapping curve.
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.jme3.post.Filter

    com.jme3.post.Filter.Pass
  • Field Summary

    Fields inherited from class com.jme3.post.Filter

    defaultPass, enabled, material, postRenderPasses, processor
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a tone-mapping filter with the default exposure and gamma.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.jme3.math.Vector3f
    Get the exposure for the tone mapping.
    com.jme3.math.Vector3f
    Get the gamma for the tone mapping.
    protected com.jme3.material.Material
     
    protected void
    initFilter(com.jme3.asset.AssetManager manager, com.jme3.renderer.RenderManager renderManager, com.jme3.renderer.ViewPort vp, int w, int h)
     
    protected boolean
     
    void
    read(com.jme3.export.JmeImporter im)
     
    void
    setExposure(com.jme3.math.Vector3f whitePoint)
    Set the exposure for the tone mapping.
    void
    setGamma(com.jme3.math.Vector3f gamma)
    Set the gamma for the tone mapping.
    void
    write(com.jme3.export.JmeExporter ex)
     

    Methods inherited from class com.jme3.post.Filter

    cleanup, cleanUpFilter, getDefaultPassDepthFormat, getDefaultPassTextureFormat, getName, getPostRenderPasses, getRenderedTexture, getRenderFrameBuffer, init, isEnabled, isRequiresBilinear, isRequiresSceneTexture, postFilter, postFrame, postQueue, preFrame, setDepthTexture, setEnabled, setName, setProcessor, setRenderedTexture, setRenderFrameBuffer

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • KHRToneMapFilter

      public KHRToneMapFilter()
      Creates a tone-mapping filter with the default exposure and gamma.
  • Method Details

    • isRequiresDepthTexture

      protected boolean isRequiresDepthTexture()
      Overrides:
      isRequiresDepthTexture in class com.jme3.post.Filter
    • initFilter

      protected void initFilter(com.jme3.asset.AssetManager manager, com.jme3.renderer.RenderManager renderManager, com.jme3.renderer.ViewPort vp, int w, int h)
      Specified by:
      initFilter in class com.jme3.post.Filter
    • getMaterial

      protected com.jme3.material.Material getMaterial()
      Specified by:
      getMaterial in class com.jme3.post.Filter
    • setExposure

      public void setExposure(com.jme3.math.Vector3f whitePoint)
      Set the exposure for the tone mapping.
      Parameters:
      whitePoint - The exposure vector.
    • getExposure

      public com.jme3.math.Vector3f getExposure()
      Get the exposure for the tone mapping.
      Returns:
      The exposure vector.
    • setGamma

      public void setGamma(com.jme3.math.Vector3f gamma)
      Set the gamma for the tone mapping.
      Parameters:
      gamma - The gamma vector.
    • getGamma

      public com.jme3.math.Vector3f getGamma()
      Get the gamma for the tone mapping.
      Returns:
      The gamma vector.
    • write

      public void write(com.jme3.export.JmeExporter ex) throws IOException
      Specified by:
      write in interface com.jme3.export.Savable
      Overrides:
      write in class com.jme3.post.Filter
      Throws:
      IOException
    • read

      public void read(com.jme3.export.JmeImporter im) throws IOException
      Specified by:
      read in interface com.jme3.export.Savable
      Overrides:
      read in class com.jme3.post.Filter
      Throws:
      IOException