@JsType(isNative=true, namespace="Cesium", name="PostProcessStage") public class PostProcessStage extends Object implements PostProcess
Modifier and Type | Field and Description |
---|---|
boolean |
enabled
Whether or not to execute this post-process stage when ready.
|
Constructor and Description |
---|
PostProcessStage(PostProcessStageOptions options) |
Modifier and Type | Method and Description |
---|---|
Color |
clearColor()
The color to clear the output texture to.
|
static PostProcessStage |
create(String fragmentShader)
Simple create instance of
PostProcessStage . |
void |
destroy()
Destroys the WebGL resources held by this object.
|
double |
forcePowerOfTwo()
Whether or not to force the output texture dimensions to be both equal powers of two.
|
String |
fragmentShader()
The fragment shader to use when execute this post-process stage.
|
boolean |
isDestroyed()
Returns true if this object was destroyed; otherwise, false.
|
String |
name()
The unique name of this post-process stage for reference by other stages in a PostProcessStageComposite.
|
PixelDatatype |
pixelDatatype()
The pixel data type of the output texture.
|
PixelFormat |
pixelFormat()
The color pixel format of the output texture.
|
boolean |
ready()
Determines if this post-process stage is ready to be executed.
|
PostProcessStageSampleMode |
sampleMode()
How to sample the input color texture.
|
BoundingRectangle |
scissorRectangle()
The BoundingRectangle to use for the scissor test.
|
double |
textureScale()
A number in the range (0.0, 1.0] used to scale the output texture dimensions.
|
JsObject |
uniforms()
An object whose properties are used to set the uniforms of the fragment shader.
|
@JsProperty public boolean enabled
@JsConstructor public PostProcessStage(PostProcessStageOptions options)
@JsProperty(name="clearColor") public Color clearColor()
@JsProperty(name="forcePowerOfTwo") public double forcePowerOfTwo()
@JsProperty(name="fragmentShader") public String fragmentShader()
@JsProperty(name="name") public String name()
@JsProperty(name="pixelDatatype") public PixelDatatype pixelDatatype()
@JsProperty(name="pixelFormat") public PixelFormat pixelFormat()
@JsProperty(name="ready") public boolean ready()
@JsProperty(name="sampleMode") public PostProcessStageSampleMode sampleMode()
@JsProperty(name="scissorRectangle") public BoundingRectangle scissorRectangle()
@JsProperty(name="textureScale") public double textureScale()
@JsProperty(name="uniforms") public JsObject uniforms()
@JsOverlay public static PostProcessStage create(String fragmentShader)
PostProcessStage
.fragmentShader
- The fragment shader to usePostProcessStage
.@JsMethod public void destroy()
@JsMethod public boolean isDestroyed()
Copyright © 2019. All rights reserved.