Package com.jme3.post.filters
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
ConstructorsConstructorDescriptionCreates 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 TypeMethodDescriptionprotected com.jme3.material.Materialcom.jme3.math.Vector3fGet the scene white point.protected voidinitFilter(com.jme3.asset.AssetManager manager, com.jme3.renderer.RenderManager renderManager, com.jme3.renderer.ViewPort vp, int w, int h) protected booleanvoidread(com.jme3.export.JmeImporter im) voidsetWhitePoint(com.jme3.math.Vector3f whitePoint) Set the scene white point.voidwrite(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
-
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:
isRequiresDepthTexturein classcom.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:
initFilterin classcom.jme3.post.Filter
-
getMaterial
protected com.jme3.material.Material getMaterial()- Specified by:
getMaterialin classcom.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
- Specified by:
writein interfacecom.jme3.export.Savable- Overrides:
writein classcom.jme3.post.Filter- Throws:
IOException
-
read
- Specified by:
readin interfacecom.jme3.export.Savable- Overrides:
readin classcom.jme3.post.Filter- Throws:
IOException
-