C# Класс Danmaku_no_Kyojin.Shaders.BloomComponent

Наследование: Microsoft.Xna.Framework.DrawableGameComponent
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
BeginDraw ( ) : void

This should be called at the very start of the scene rendering. The bloom component uses it to redirect drawing into its custom rendertarget, so it can capture the scene image in preparation for applying the bloom filter.

BloomComponent ( Microsoft.Xna.Framework.Game game ) : System
Draw ( GameTime gameTime ) : void

This is where it all happens. Grabs a scene that has already been rendered, and uses postprocess magic to add a glowing bloom effect over the top of it.

Защищенные методы

Метод Описание
LoadContent ( ) : void

Load your graphics content.

UnloadContent ( ) : void

Unload your graphics content.

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

Метод Описание
ComputeGaussian ( float n ) : float

Evaluates a single point on the gaussian falloff curve. Used for setting up the blur filter weightings.

DrawFullscreenQuad ( Microsoft.Xna.Framework.Graphics.Texture2D texture, RenderTarget2D renderTarget, Effect effect, IntermediateBuffer currentBuffer ) : void

Helper for drawing a texture into a rendertarget, using a custom shader to apply postprocessing effects.

DrawFullscreenQuad ( Microsoft.Xna.Framework.Graphics.Texture2D texture, int width, int height, Effect effect, IntermediateBuffer currentBuffer ) : void

Helper for drawing a texture into the current rendertarget, using a custom shader to apply postprocessing effects.

SetBlurEffectParameters ( float dx, float dy ) : void

Computes sample weightings and texture coordinate offsets for one pass of a separable gaussian blur filter.

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

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

This should be called at the very start of the scene rendering. The bloom component uses it to redirect drawing into its custom rendertarget, so it can capture the scene image in preparation for applying the bloom filter.
public BeginDraw ( ) : void
Результат void

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

public BloomComponent ( Microsoft.Xna.Framework.Game game ) : System
game Microsoft.Xna.Framework.Game
Результат System

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

This is where it all happens. Grabs a scene that has already been rendered, and uses postprocess magic to add a glowing bloom effect over the top of it.
public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
Результат void

LoadContent() защищенный Метод

Load your graphics content.
protected LoadContent ( ) : void
Результат void

UnloadContent() защищенный Метод

Unload your graphics content.
protected UnloadContent ( ) : void
Результат void