Hi there,
Im used to do camera effects using OnRenderImage but i saw some code with commandBuffer,
i cant get the idea of it, im trying to do a simple downsample of my current camera render and it wont work at all… looking at the Frame Debugger i cant see the image effect being applied but in game and editor nothing change.
my code goes like:
OnPostRender
- new Command Buffer
- GetTemproraryRT of full screen
- Create a GetTemporary half Size of screen
- blit the Full Screen temporary to the Half Size screen temporary
- Remove Full Screen temporary
- Take the half Screen downsample RT and put it on another Full Screen Temporary
- blit the downsample full screen into BuiltinRenderTextureType.CurrentActive
------->_buffer.Blit(FinalTextureID, BuiltinRenderTextureType.CurrentActive, _bloomMaterial); - AddCommandBuffer
That works only inside the frame debugger.
i tried removing the last blit and use SetGlobalTexture with no lucky.
What im missing here?
Help!