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
Modifier and TypeFieldDescriptionprotected Texture2D
protected String
protected Material
protected Texture2D
protected FrameBuffer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
init
(Renderer renderer, int width, int height, Image.Format textureFormat, Image.Format depthBufferFormat) init the pass called internallyvoid
init
(Renderer renderer, int width, int height, Image.Format textureFormat, Image.Format depthBufferFormat, int numSamples) void
init
(Renderer renderer, int width, int height, Image.Format textureFormat, Image.Format depthBufferFormat, int numSamples, boolean renderDepth) init the pass called internallyvoid
init
(Renderer renderer, int width, int height, Image.Format textureFormat, Image.Format depthBufferFormat, int numSample, Material material) init the pass called internallyboolean
boolean
void
setPassMaterial
(Material passMaterial) void
setRenderedTexture
(Texture2D renderedTexture) void
setRenderFrameBuffer
(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
-