C# Class VoxelTerrain.PostProcess

This object can apply various effects on textures using compute shaders.
Exibir arquivo Open project: barograf/VoxelTerrain Class Usage Examples

Public Properties

Property Type Description
Settings PostProcessSettings

Public Methods

Method Description
AddFogTexture ( ) : RenderTarget

Combines original texture with fog texture.

GetRenderTarget ( int index ) : RenderTarget

Gets render target with specified index in a list.

Initialize ( int width, int height ) : void

Initializes render targets.

MakeBloomEffect ( RenderTarget texture ) : ShaderResourceView

Makes bloom effect using specified input texture.

PostProcess ( SlimDX.Direct3D11.Device graphicsDevice, int width, int height ) : System

Default constructor.

Private Methods

Method Description
AddEffect ( string name ) : void

Adds shader program with specified entry point to the set.

AddRenderTarget ( int width, int height, Format format ) : void

Adds new render target to the list.

Dispatch ( string shader, int outputScale, RenderTarget output ) : void

Sets specified shader program and performs computations.

Method Details

AddFogTexture() public method

Combines original texture with fog texture.
public AddFogTexture ( ) : RenderTarget
return RenderTarget

GetRenderTarget() public method

Gets render target with specified index in a list.
public GetRenderTarget ( int index ) : RenderTarget
index int List index.
return RenderTarget

Initialize() public method

Initializes render targets.
public Initialize ( int width, int height ) : void
width int Screen space width.
height int Screen space height.
return void

MakeBloomEffect() public method

Makes bloom effect using specified input texture.
public MakeBloomEffect ( RenderTarget texture ) : ShaderResourceView
texture RenderTarget Texture to apply effect on.
return ShaderResourceView

PostProcess() public method

Default constructor.
public PostProcess ( SlimDX.Direct3D11.Device graphicsDevice, int width, int height ) : System
graphicsDevice SlimDX.Direct3D11.Device Virtual adapter used to perform rendering.
width int Screen space width.
height int Screen space height.
return System

Property Details

Settings public_oe property

Object with effects' settings.
public PostProcessSettings,VoxelTerrain Settings
return PostProcessSettings