needDepthPrePass creates flickering in 8.6.2

I’ve created an issue in the Webkit repo:

2 Likes

Seems like there is a fix in the webkit repo - Will that be implemented in Babylon?

A workaround is already in place in the repo, I will let @Evgeni_Popov check if we should change our defaults or not ?

1 Like

I removed the hack I did previously and implemented a proper way to fix it:

This PR adds a new property, setVertexOutputInvariant, to the Material class. Set this property to true to fix the issue in the PG.

Note that this property is set to false by default, as it affects performance (some optimizations will be disabled at the shader compilation level).

2 Likes