Nez.Portable/Graphics/PostProcessing/PostProcessor.cs
/// <summary>
/// helper for drawing a texture into the current rendertarget, optionally using a custom shader to apply postprocessing effects.
/// </summary>
helper for drawing a texture into the current rendertarget, optionally using a custom shader to apply postprocessing effects.
helper for drawing a texture into the current rendertarget optionally using a custom shader to apply postprocessing effects .
protected void drawFullscreenQuad(Texture2D texture, int width, int height, Effect effect)
        {
            Graphics.instance.batcher.begin(
                blendState,
                samplerState,
                DepthStencilState.None,
                RasterizerState.CullNone,
                effect);
            Graphics.instance.batcher.draw(texture, new Rectangle(0, 0, width, height), Color.White);
            Graphics.instance.batcher.end();
        }
protected void drawFullscreenQuad ( Texture2D texture , int width , int height , Effect effect ) { Graphics . instance . batcher . begin ( blendState , samplerState , DepthStencilState . None , RasterizerState . CullNone , effect ) ; Graphics . instance . batcher . draw ( texture , new Rectangle ( 0 , 0 , width , height ) , Color . White ) ; Graphics . instance . batcher . end ( ) ; }
helper for drawing a texture into the current rendertarget, optionally using a custom shader to apply postprocessing effects.
helper for drawing a texture into the current rendertarget optionally using a custom shader to apply postprocessing effects .
texture
Texture2D
width
int
height
int
effect
Effect