C# Class VoxelTerrain.PostProcess

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

Méthodes publiques

Свойство Type Description
Settings PostProcessSettings

Méthodes publiques

Méthode 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

Méthode 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 méthode

Combines original texture with fog texture.
public AddFogTexture ( ) : RenderTarget
Résultat RenderTarget

GetRenderTarget() public méthode

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

Initialize() public méthode

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

MakeBloomEffect() public méthode

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

PostProcess() public méthode

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.
Résultat System

Property Details

Settings public_oe property

Object with effects' settings.
public PostProcessSettings,VoxelTerrain Settings
Résultat PostProcessSettings