0

OnPostRender - How it works ?

Mourad Yessaad 2 years ago 0

Hi,


I make a simple flow for convert a Camera Render Texture to PNG with alpha.

Render size is constrain by a scale factor. When scale factor = 1 the flow work but when the scale is bigger than 1 an error occurs.

[d3d11] attempting to ReadPixels outside of RenderTexture bounds!


After Google research i think it's because the ReadPixel run before the Render Texture was created. I would try to run ReadPixel with OnPostRender event

How use OnPostRender event in bolt ? 


thank a lots

Bolt Version:
Unity Version:
Platform(s):
Scripting Backend:
.NET Version (API Compatibility Level):