Assigning a material to be transparent with needDepthPrePass causes a black flash

This is due to parallel shader compilation taking a bit of time, you could disable it like this: https://playground.babylonjs.com/#I3AHLA#1