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
- width
- height
- textureFormat
- depthBufferFormat
- numSamples
- public void init(Renderer renderer, int width, int height, Image.Format textureFormat, Image.Format depthBufferFormat)
renderer
- width
- height
- textureFormat
- depthBufferFormat
- public 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
- width
- height
- textureFormat
- depthBufferFormat
- numSample
- material
- public 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