Свойство | Type | Description | |
---|---|---|---|
color_rt | |||
depth_rt | |||
result_rt |
Méthode | Description | |
---|---|---|
Bloom ( |
Applies a bloom effect to the specified render target, writes the result to the specified render target.
|
|
Blur ( |
Applies a blur to the specified render target, writes the result to the specified render target.
|
|
DepthBlur ( |
Applies a blur to the specified render target, using a depth texture to prevent pixels from blurring with pixels that are "in front"
|
|
DepthOfField ( |
Performs tone mapping on the specified render target
|
|
FlushCache ( ) : void |
Disposes all intermediate textures in the cache
|
|
GetInstance ( GraphicsDevice device ) : |
||
PostProcessor ( GraphicsDevice device ) : System |
The class constructor
|
Méthode | Description | |
---|---|---|
GenerateDownscaleTargetHW ( |
Downscales the source to 1/16th size, using hardware filtering
|
|
GenerateDownscaleTargetSW ( |
Downscales the source to 1/16th size, using software(shader) filtering
|
|
GetIntermediateTexture ( int width, int height, SurfaceFormat format ) : IntermediateTexture |
Checks the cache to see if a suitable rendertarget has already been created and isn't in use. Otherwise, creates one according to the parameters
|
|
GetIntermediateTexture ( int width, int height, SurfaceFormat format, int msQuality ) : IntermediateTexture | ||
PostProcess ( |
Performs a post-processing step using a single source texture
|
|
Swap ( |
Swaps two RenderTarget's
|
public Bloom ( |
||
source | The render target to use as the source | |
result | The render target to use as the result | |
threshold | float | |
bloom_intensity | float | |
base_intensity | float | |
bloom_saturation | float | |
base_saturation | float | |
Résultat | void |
public Blur ( |
||
source | The render target to use as the source | |
result | The render target to use as the result | |
sigma | float | The standard deviation used for gaussian weights |
Résultat | void |
public DepthBlur ( |
||
source | The render target to use as the source | |
result | The render target to use as the result | |
depthTexture | The depth texture to use | |
sigma | float | The standard deviation used for gaussian weights |
Résultat | void |
public DepthOfField ( |
||
source | The source render target | |
result | The render target to which the result will be output | |
depthTexture | The render target containing scene depth | |
camera | Camera | The camera used to render the scene |
dofType | DepthOfFieldType | The type of DOF effect to apply |
focalDistance | float | The distance to the camera focal point |
focalWidth | float | The width of the camera focal point |
time | float | |
Résultat | void |
public static GetInstance ( GraphicsDevice device ) : |
||
device | GraphicsDevice | |
Résultat |
public PostProcessor ( GraphicsDevice device ) : System | ||
device | GraphicsDevice | The GraphicsDevice to use for rendering |
Résultat | System |
public RenderTarget2D,Microsoft.Xna.Framework.Graphics color_rt | ||
Résultat |
public RenderTarget2D,Microsoft.Xna.Framework.Graphics depth_rt | ||
Résultat |