Details
-
Bug
-
Resolution: Unresolved
-
P1: Critical
-
None
-
6.6.2
-
None
Description
It seems setting QStencilTestArguments::referenceValue to 1 takes no effect on rendering with RHI.
I add renderstates to the framegraph in the Basic shapes example to enable writing to the stencilbuffer.
I start the application in renderdoc.
With RHI, using QSG_RHI_BACKEND=opengl, nothing is written on the stencilbuffer, the corresponding function is also incorrect: glStencilFuncSeparate(GL_FRONT, GL_ALWAYS, 0, 0)
The 3. parameter is the reference value that’s supposed to be set via QStencilTestArguments::setReferenceValue in the qt3d framework.
Running the same application with QT3D_RENDERER=opengl, it produces the expected result (loading it in renderdoc, I can see values on the stencilbuffer and I can see the corresponding function correctly set: glStencilFuncSeparate(GL_FRONT, GL_ALWAYS, 1, 0)).
Changes to main.cpp in basic shapes (skipping the necessary includes here):
//FrameGraph