C# 클래스 VoxelTerrain.PostProcess

This object can apply various effects on textures using compute shaders.
파일 보기 프로젝트 열기: barograf/VoxelTerrain 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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