Search Issue Tracker
By Design
Votes
1
Found in
5.6.1f1
Issue ID
914114
Regression
Yes
Visual artifacts appear when rendering to render texture which uses a specific shader
To reproduce:
1. Open the project, attached by user (RenderTexturesIssue.zip)
2. Open "Test" scene
3. Enter Play mode
4. Move Cube game object in the scene
Expected: no trail objects are rendered to the render texture when the texture uses the specific shader
Actual: copies of the object are renderer when the object is moved
Reproduced in 5.6.0a1, 5.6.1f1, 2017.1.0b6, 2017.1.0a1
Did not reproduce in 5.5.3p2
Regression introduced in 5.6.0a1
Won't fix: This was working before due to a side effect of how we passed the image effects texture into the OnRenderImage. This has changed now and the destination may not be implicity bound. You can fix this issue by binding the texture before doing the clear:
private void OnRenderImage(RenderTexture source, RenderTexture destination)
{
RenderTexture.active = destination;
GL.Clear(false, true, Color.black);
Graphics.Blit(rt, destination, postMat);
}
Comments (1)
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
- Rendering Debugger window sections do not have a minimum width set when resizing with the slider in the middle of the window
- Last segment of a Sprite Shape Spline is affected by other segments' Sprite Variant change when no edge Sprite is selected
- [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
Ladace
May 24, 2017 12:25
I'm having a similar issue using RenderTexture, which only happens on the player on metal API. Everything by Graphics.Blit with specific shader is rendered with trails and tinted by pink.