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
파일 보기 프로젝트 열기: prime31/Nez

공개 메소드들

메소드 설명
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