Search Issue Tracker

By Design

Votes

5

Found in

5.4.2f2

Issue ID

847967

Regression

No

Stencil buffer breaks in OnRenderImage when MSAA enabled

Graphics - General

-

Steps to reproduce:
1. Download and open the attached project
2. Press play
3. Observe spinning cube with stencil shaders
4. Press Space to change AntiAliasing value to 8 ( or toggle it manually on script attached to the main camera )

Expected result: cube with stencil shaders continues to get rendered with AA
Actual result: cube render freezes in the last frame before AA is turned on

Reproduced on 5.2.3f1. 5.3.6p8, 5.4.2f2, 5.4.2p3, 5.5.0b11, 5.6.0a2(e9ba82db0b63)
Reproduced with Direct3D 9, 11 and 12, OpenGLECore, ES2 and ES3

Notes:
-Setting the AA to higher than 8 (in DrawStencil.cs) stops rendering the cube entirely.
-Disabling AA again returns the rendering of the cube to normal

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.