Package com.jme3.post.filters
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
ConstructorsConstructorDescriptionCreates a tone-mapping filter with the default exposure and gamma. -
Method Summary
Modifier and TypeMethodDescriptioncom.jme3.math.Vector3fGet the exposure for the tone mapping.com.jme3.math.Vector3fgetGamma()Get the gamma for the tone mapping.protected com.jme3.material.Materialprotected 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) voidsetExposure(com.jme3.math.Vector3f whitePoint) Set the exposure for the tone mapping.voidsetGamma(com.jme3.math.Vector3f gamma) Set the gamma for the tone mapping.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
-
KHRToneMapFilter
public KHRToneMapFilter()Creates a tone-mapping filter with the default exposure and gamma.
-
-
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
-
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
- 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
-