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

**URL:** <https://forum.babylonjs.com/t/assigning-a-material-to-be-transparent-with-needdepthprepass-causes-a-black-flash/32312>\
**Category:** Bugs\
**Created:** [July 19, 2022, 4:54pm UTC](https://forum.babylonjs.com/t/assigning-a-material-to-be-transparent-with-needdepthprepass-causes-a-black-flash/32312 "2022-07-19T16:54:31Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [July 19, 2022, 5:26pm UTC](https://forum.babylonjs.com/t/assigning-a-material-to-be-transparent-with-needdepthprepass-causes-a-black-flash/32312/2 "2022-07-19T17:26:56Z")

</div>

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

---

_[View the full topic](https://forum.babylonjs.com/t/assigning-a-material-to-be-transparent-with-needdepthprepass-causes-a-black-flash/32312)._
