C# Класс Nez.SpriteLightPostProcessor

post processor to assist with making blended sprite lights. Usage is as follows: - render all sprite lights with a separate Renderer to a RenderTarget. The clear color of the Renderer is your ambient light color. - render all normal objects in standard fashion - add this PostProcessor with the RenderTarget from your lights Renderer
Наследование: PostProcessor
Показать файл Открыть проект

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

Метод Описание
SpriteLightPostProcessor ( int executionOrder, RenderTexture lightsRenderTexture ) : System
onAddedToScene ( ) : void
onSceneBackBufferSizeChanged ( int newWidth, int newHeight ) : void
process ( RenderTarget2D source, RenderTarget2D destination ) : void

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

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

public SpriteLightPostProcessor ( int executionOrder, RenderTexture lightsRenderTexture ) : System
executionOrder int
lightsRenderTexture Nez.Textures.RenderTexture
Результат System

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

public onAddedToScene ( ) : void
Результат void

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

public onSceneBackBufferSizeChanged ( int newWidth, int newHeight ) : void
newWidth int
newHeight int
Результат void

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

public process ( RenderTarget2D source, RenderTarget2D destination ) : void
source Microsoft.Xna.Framework.Graphics.RenderTarget2D
destination Microsoft.Xna.Framework.Graphics.RenderTarget2D
Результат void