Class ColorOverlayFilter

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

public class ColorOverlayFilter extends com.jme3.post.Filter
This filter simply multiply the whole scene by a color
Author:
Rémy Bouquet aka Nehon
  • 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 colorOverlayFilter with a white color (transparent)
    ColorOverlayFilter(com.jme3.math.ColorRGBA color)
    creates a colorOverlayFilter with the given color
  • Method Summary

    Modifier and Type
    Method
    Description
    com.jme3.math.ColorRGBA
    returns the color
    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)
     
    void
    read(com.jme3.export.JmeImporter im)
     
    void
    setColor(com.jme3.math.ColorRGBA color)
    sets the color
    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, isRequiresDepthTexture, 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

    • ColorOverlayFilter

      public ColorOverlayFilter()
      creates a colorOverlayFilter with a white color (transparent)
    • ColorOverlayFilter

      public ColorOverlayFilter(com.jme3.math.ColorRGBA color)
      creates a colorOverlayFilter with the given color
      Parameters:
      color - the desired color (default=(1,1,1,1), alias created)
  • Method Details

    • getMaterial

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

      public com.jme3.math.ColorRGBA getColor()
      returns the color
      Returns:
      color
    • setColor

      public void setColor(com.jme3.math.ColorRGBA color)
      sets the color
      Parameters:
      color - the desired color (default=(1,1,1,1), alias created)
    • 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
    • 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