Package com.jme3.post
Class Filter.Pass
java.lang.Object
com.jme3.post.Filter.Pass
- Enclosing class:
- Filter
Passes are like filters within filters.
Some filters will need multiple passes before the final render.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Texture2Dprotected Stringprotected Materialprotected Texture2Dprotected FrameBuffer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidinit(Renderer renderer, int width, int height, Image.Format textureFormat, Image.Format depthBufferFormat) init the pass called internallyvoidinit(Renderer renderer, int width, int height, Image.Format textureFormat, Image.Format depthBufferFormat, int numSamples) voidinit(Renderer renderer, int width, int height, Image.Format textureFormat, Image.Format depthBufferFormat, int numSamples, boolean renderDepth) init the pass called internallyvoidinit(Renderer renderer, int width, int height, Image.Format textureFormat, Image.Format depthBufferFormat, int numSample, Material material) init the pass called internallybooleanbooleanvoidsetPassMaterial(Material passMaterial) voidsetRenderedTexture(Texture2D renderedTexture) voidsetRenderFrameBuffer(FrameBuffer renderFrameBuffer) toString()
-
Field Details
-
renderFrameBuffer
-
renderedTexture
-
depthTexture
-
passMaterial
-
name
-
-
Constructor Details
-
Pass
-
Pass
public Pass()
-
-
Method Details
-
init
public void init(Renderer renderer, int width, int height, Image.Format textureFormat, Image.Format depthBufferFormat, int numSamples, boolean renderDepth) init the pass called internally- Parameters:
renderer- (not null)width- the width (in pixels, ≥0)height- the height (in pixels, ≥0)textureFormat- format of the rendered texturedepthBufferFormat- format of the depth buffernumSamples- the number of samples per pixel (for multisampling)renderDepth- true to create a depth texture, false for none
-
init
public void init(Renderer renderer, int width, int height, Image.Format textureFormat, Image.Format depthBufferFormat) init the pass called internally- Parameters:
renderer- (not null)width- the image width (in pixels, ≥0)height- the image height (in pixels, ≥0)textureFormat- the format of the rendered texturedepthBufferFormat- the format of the depth buffer
-
init
public void init(Renderer renderer, int width, int height, Image.Format textureFormat, Image.Format depthBufferFormat, int numSamples) -
init
public void init(Renderer renderer, int width, int height, Image.Format textureFormat, Image.Format depthBufferFormat, int numSample, Material material) init the pass called internally- Parameters:
renderer- (not null)width- the image width (in pixels, ≥0)height- the image height (in pixels, ≥0)textureFormat- the format of the rendered texturedepthBufferFormat- the format of the depth buffernumSample- the number of samples per pixel (for multisampling)material- the Material for this pass
-
requiresSceneAsTexture
public boolean requiresSceneAsTexture() -
requiresDepthAsTexture
public boolean requiresDepthAsTexture() -
beforeRender
public void beforeRender() -
getRenderFrameBuffer
-
setRenderFrameBuffer
-
getDepthTexture
-
getRenderedTexture
-
setRenderedTexture
-
getPassMaterial
-
setPassMaterial
-
cleanup
-
toString
-