public SpriteLightPostProcessor( int executionOrder, RenderTexture lightsRenderTexture ) : base(executionOrder) { _lightsRenderTexture = lightsRenderTexture; }
public override void onSceneBackBufferSizeChanged( int newWidth, int newHeight ) { // create our RenderTextures if we havent and resize them if we have if( diffuseRT == null ) { diffuseRT = new RenderTexture( newWidth, newHeight, SurfaceFormat.Color, DepthFormat.None ); normalRT = new RenderTexture( newWidth, newHeight, SurfaceFormat.Color, DepthFormat.None ); lightRT = new RenderTexture( newWidth, newHeight, SurfaceFormat.Color, DepthFormat.None ); } else { diffuseRT.onSceneBackBufferSizeChanged( newWidth, newHeight ); normalRT.onSceneBackBufferSizeChanged( newWidth, newHeight ); lightRT.onSceneBackBufferSizeChanged( newWidth, newHeight ); } }
public PixelBloomPostProcessor( RenderTexture layerRenderTexture, int executionOrder ) : base( executionOrder ) { _layerRT = layerRenderTexture; _tempRT = new RenderTexture( _layerRT.renderTarget.Width, _layerRT.renderTarget.Height, DepthFormat.None ); }