# \#depthwrite

**URL:** https://discourse.threejs.org/tag/depthwrite/1513.md

[Latest](https://discourse.threejs.org/latest.md) · [Categories](https://discourse.threejs.org/categories.md) · [Tags](https://discourse.threejs.org/tags.md)

---

## [Transparent instancedMesh rendering bug with different positions](https://discourse.threejs.org/t/transparent-instancedmesh-rendering-bug-with-different-positions/57111)

<div class="topic-metadata">

**Author:** [@vivi\_tian](https://discourse.threejs.org/u/vivi_tian)\
**Replies:** 2\
**Last updated:** [October 18, 2023, 8:16am UTC](https://discourse.threejs.org/t/transparent-instancedmesh-rendering-bug-with-different-positions/57111 "2023-10-18T08:16:35Z")

</div>

I used the InstancedMesh. I tried to solve the problem of wrong rendering order by setting depthWrite to true. But it caused a new problem, the transparent part will appear black. depthWrite = true; alphaTest = 0.02; …
