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 SummaryFieldsModifier and TypeFieldDescriptionprotected Texture2Dprotected Stringprotected Materialprotected Texture2Dprotected FrameBuffer
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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
- 
Passpublic Pass()
 
- 
- 
Method Details- 
initpublic 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 texture
- depthBufferFormat- format of the depth buffer
- numSamples- the number of samples per pixel (for multisampling)
- renderDepth- true to create a depth texture, false for none
 
- 
initpublic 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 texture
- depthBufferFormat- the format of the depth buffer
 
- 
initpublic void init(Renderer renderer, int width, int height, Image.Format textureFormat, Image.Format depthBufferFormat, int numSamples) 
- 
initpublic 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 texture
- depthBufferFormat- the format of the depth buffer
- numSample- the number of samples per pixel (for multisampling)
- material- the Material for this pass
 
- 
requiresSceneAsTexturepublic boolean requiresSceneAsTexture()
- 
requiresDepthAsTexturepublic boolean requiresDepthAsTexture()
- 
beforeRenderpublic void beforeRender()
- 
getRenderFrameBuffer
- 
setRenderFrameBuffer
- 
getDepthTexture
- 
getRenderedTexture
- 
setRenderedTexture
- 
getPassMaterial
- 
setPassMaterial
- 
cleanup
- 
toString
 
-