Class ToneMapFilter

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

public class ToneMapFilter extends com.jme3.post.Filter
Tone-mapping filter that uses filmic curve.
Author:
Kirill Vainer
  • 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 white-point of 11.2.
    ToneMapFilter(com.jme3.math.Vector3f whitePoint)
    Creates a tone-mapping filter with the specified white-point.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected com.jme3.material.Material
     
    com.jme3.math.Vector3f
    Get the scene white point.
    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
    setWhitePoint(com.jme3.math.Vector3f whitePoint)
    Set the scene white point.
    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

    • ToneMapFilter

      public ToneMapFilter()
      Creates a tone-mapping filter with the default white-point of 11.2.
    • ToneMapFilter

      public ToneMapFilter(com.jme3.math.Vector3f whitePoint)
      Creates a tone-mapping filter with the specified white-point.
      Parameters:
      whitePoint - The intensity of the brightest part of the scene.
  • 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
    • setWhitePoint

      public void setWhitePoint(com.jme3.math.Vector3f whitePoint)
      Set the scene white point.
      Parameters:
      whitePoint - The intensity of the brightest part of the scene.
    • getWhitePoint

      public com.jme3.math.Vector3f getWhitePoint()
      Get the scene white point.
      Returns:
      The intensity of the brightest part of the scene.
    • 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