cocos-engine icon indicating copy to clipboard operation
cocos-engine copied to clipboard

When GPU Instancing is enabled, the material's priority settings will no longer take effect.

Open yoki0805 opened this issue 1 year ago • 0 comments

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. WeChat 截圖_20241009173353

The rendering priority of the red cube: WeChat 截圖_20241009173441

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.

Minimal reproduction project

Test.zip

yoki0805 avatar Oct 09 '24 09:10 yoki0805