Search Issue Tracker

By Design

Votes

0

Found in

2018.4

2019.4

2020.2

2020.2.1f1

2021.1

2021.2

Issue ID

1307699

Regression

No

Texture is drawn inconsistently when rendering Mesh to a RenderTexture and using Graphics.DrawMeshNow

Graphics - LowLevel

-

Reproduction steps:
1. Open the attached "case_1307699.zip" project and Scenes/SampleScene scene
2. Enter the Play mode
3. Observe the Game view (try hovering the mouse over the GameObjects in the Hierarchy)

Expected result: Texture is always rendered
Actual result: Texture is sometimes rendered (mostly when hovering over UI elements with the mouse)

Reproducible with: 2018.4.31f1, 2019.4.19f1, 2020.2.3f1, 2021.1.0b5, 2021.2.0a3

  1. Resolution Note (2021.2.X):

    This behaviour is by design. DrawMeshNow will by default use the view matrix of the active camera when rendering (if there is an active camera). Active camera is then by itself not stable during calls to Update or coroutine execution which can make things flicker.
    We have improved documentation and added a way to override the matrix if needed, although it is not the default behaviour.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.