Search Issue Tracker
By Design
Votes
0
Found in
2018.1.0a1
2018.3.0a1
2018.3.14f1
2019.1.0a1
2019.2.0a1
2019.3.0a1
Issue ID
1163915
Regression
No
CommandBuffer.Blit(RenderTargetIdentifier, RenderTargetIdentifier, Material) does not render the Render Texture
How to reproduce:
1. Open the attached project
2. Open the "demo.unity" scene
3. Enter Play mode
Expected result: Both Render Textures are rendered.
Actual result: Render Texture with CommandBuffer.Blit(RenderTargetIdentifier, RenderTargetIdentifier, Material) doesn't get rendered.
Reproducible with: 2019.3.0a7, 2019.2.0b7, 2019.1.8f1, 2018.4.2f1, 2018.1.9f2, 2017.4.29f1.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [iOS] Application frequently crashes on Social.LoadAchievements call when many achievements are registered
- Errors “RenderPass: Attachment 0 is declared as depth attachment but RGBA8 sRGB is not a valid depth format.“ and “BeginSubPass: Not inside a Renderpass“ are present when using Native RenderPass with a RenderTexture that only has depth output
- ArgumentOutOfRangeException is thrown when an empty DropdownField is clicked at runtime
- [tvOS] "EXC_BAD_ACCESS" error is thrown when Painter2D.ClosePath is called
- Bad Naming Convention in Shortcuts Window for Sprite Shape Editing
Resolution Note (2019.3.X):
When using `m_Camera.SetTargetBuffers(m_ColorRenderTexture.colorBuffer, m_DepthRenderTexture.depthBuffer);` the alias for CameraTarget will not be set (this is only valid for single render textures).
If you go via this route you need to manually manage your render targets. You can do as follows to have it work as expected:
var rt1 = new RenderTargetIdentifier(m_ColorRenderTexture);
cmdBuffer.Clear();
cmdBuffer.Blit(rt1, blitRenderTexture);
cmdBuffer.Blit(rt1, blitRenderTextureWithMaterial, material, 0);
-Tim C