public class Filter.Pass
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected Texture2D |
depthTexture |
protected java.lang.String |
name |
protected Material |
passMaterial |
protected Texture2D |
renderedTexture |
protected FrameBuffer |
renderFrameBuffer |
Modifier and Type | Method and Description |
---|---|
void |
beforeRender() |
void |
cleanup(Renderer r) |
Texture2D |
getDepthTexture() |
Material |
getPassMaterial() |
Texture2D |
getRenderedTexture() |
FrameBuffer |
getRenderFrameBuffer() |
void |
init(Renderer renderer,
int width,
int height,
Image.Format textureFormat,
Image.Format depthBufferFormat)
init the pass called internally
|
void |
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 internally
|
void |
init(Renderer renderer,
int width,
int height,
Image.Format textureFormat,
Image.Format depthBufferFormat,
int numSample,
Material material)
init the pass called internally
|
boolean |
requiresDepthAsTexture() |
boolean |
requiresSceneAsTexture() |
void |
setPassMaterial(Material passMaterial) |
void |
setRenderedTexture(Texture2D renderedTexture) |
void |
setRenderFrameBuffer(FrameBuffer renderFrameBuffer) |
java.lang.String |
toString() |
protected FrameBuffer renderFrameBuffer
protected Texture2D renderedTexture
protected Texture2D depthTexture
protected Material passMaterial
protected java.lang.String name
public void init(Renderer renderer, int width, int height, Image.Format textureFormat, Image.Format depthBufferFormat, int numSamples, boolean renderDepth)
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 nonepublic void init(Renderer renderer, int width, int height, Image.Format textureFormat, Image.Format depthBufferFormat)
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 bufferpublic void init(Renderer renderer, int width, int height, Image.Format textureFormat, Image.Format depthBufferFormat, int numSamples)
public void init(Renderer renderer, int width, int height, Image.Format textureFormat, Image.Format depthBufferFormat, int numSample, Material material)
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 passpublic boolean requiresSceneAsTexture()
public boolean requiresDepthAsTexture()
public void beforeRender()
public FrameBuffer getRenderFrameBuffer()
public void setRenderFrameBuffer(FrameBuffer renderFrameBuffer)
public Texture2D getDepthTexture()
public Texture2D getRenderedTexture()
public void setRenderedTexture(Texture2D renderedTexture)
public Material getPassMaterial()
public void setPassMaterial(Material passMaterial)
public void cleanup(Renderer r)
public java.lang.String toString()
toString
in class java.lang.Object