cocos-engine
cocos-engine copied to clipboard
When GPU Instancing is enabled, the material's priority settings will no longer take effect.
Cocos Creator version
3.8.4
System information
Windows, Web
Issue description
I created two cubes with different materials in the scene and enabled the GPU Instancing. The material's priority settings did not take effect.
To observe this issue, I disabled the depth test and discreased the rendering priority of the red cube. (In theory, draw the blue cube first.)
The red cube should cover the blue cube, but in fact, it didn't.
The rendering priority of the red cube:
Relevant error log output
No response
Steps to reproduce
Run the demo project. Try to enable/disable the GPU instancing, and see the different results.