C# Класс VoxelTerrain.PostProcess

This object can apply various effects on textures using compute shaders.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Settings PostProcessSettings

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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.

Описание методов

AddFogTexture() публичный Метод

Combines original texture with fog texture.
public AddFogTexture ( ) : RenderTarget
Результат RenderTarget

GetRenderTarget() публичный Метод

Gets render target with specified index in a list.
public GetRenderTarget ( int index ) : RenderTarget
index int List index.
Результат RenderTarget

Initialize() публичный Метод

Initializes render targets.
public Initialize ( int width, int height ) : void
width int Screen space width.
height int Screen space height.
Результат void

MakeBloomEffect() публичный Метод

Makes bloom effect using specified input texture.
public MakeBloomEffect ( RenderTarget texture ) : ShaderResourceView
texture RenderTarget Texture to apply effect on.
Результат ShaderResourceView

PostProcess() публичный Метод

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.
Результат System

Описание свойств

Settings публичное свойство

Object with effects' settings.
public PostProcessSettings,VoxelTerrain Settings
Результат PostProcessSettings