# SolidParticleSystem "DepthSort"

**URL:** <https://forum.babylonjs.com/t/solidparticlesystem-depthsort/7752>\
**Category:** Bugs\
**Created:** [December 25, 2019, 2:42pm UTC](https://forum.babylonjs.com/t/solidparticlesystem-depthsort/7752 "2019-12-25T14:42:15Z")\
**Posts on this page:** 6\
**Page:** 2

<div class="post-metadata">

**Author:** ![JohnDoe](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/johndoe/32/4679_2.png) [@JohnDoe](https://forum.babylonjs.com/u/JohnDoe)\
**Post date:** [December 26, 2019, 1:19pm UTC](https://forum.babylonjs.com/t/solidparticlesystem-depthsort/7752/21 "2019-12-26T13:19:38Z")

</div>

It works !!!

```
material.diffuseTexture = texture;
material.diffuseTexture.hasAlpha = true; // SOLUTION
material.alpha = 0.7;

```

do not use **material.opacityTexture**

---

<div class="post-metadata">

**Author:** ![JohnDoe](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/johndoe/32/4679_2.png) [@JohnDoe](https://forum.babylonjs.com/u/JohnDoe)\
**Post date:** [December 26, 2019, 1:22pm UTC](https://forum.babylonjs.com/t/solidparticlesystem-depthsort/7752/22 "2019-12-26T13:22:33Z")

</div>

@adam sorry man )

---

<div class="post-metadata">

**Author:** ![adam](https://avatars.discourse-cdn.com/v4/letter/a/4af34b/32.png) [@adam](https://forum.babylonjs.com/u/adam)\
**Post date:** [December 26, 2019, 1:23pm UTC](https://forum.babylonjs.com/t/solidparticlesystem-depthsort/7752/23 "2019-12-26T13:23:49Z")

</div>

> [@JohnDoe](#):
>
> sorry man )

Sorry? For what?

---

<div class="post-metadata">

**Author:** ![JohnDoe](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/johndoe/32/4679_2.png) [@JohnDoe](https://forum.babylonjs.com/u/JohnDoe)\
**Post date:** [December 26, 2019, 1:38pm UTC](https://forum.babylonjs.com/t/solidparticlesystem-depthsort/7752/24 "2019-12-26T13:38:13Z")

</div>

Often distracted you )

---

<div class="post-metadata">

**Author:** ![adam](https://avatars.discourse-cdn.com/v4/letter/a/4af34b/32.png) [@adam](https://forum.babylonjs.com/u/adam)\
**Post date:** [December 26, 2019, 1:38pm UTC](https://forum.babylonjs.com/t/solidparticlesystem-depthsort/7752/25 "2019-12-26T13:38:38Z")

</div>

No problem.

I’m not sure how that fixes the issue, but glad you found a fix for your situation.

---

<div class="post-metadata">

**Author:** ![kyptov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/kyptov/32/4841_2.png) [@kyptov](https://forum.babylonjs.com/u/kyptov)\
**Post date:** [December 26, 2019, 2:19pm UTC](https://forum.babylonjs.com/t/solidparticlesystem-depthsort/7752/26 "2019-12-26T14:19:54Z")

</div>

Following @jerome’s link about meshes transparency you can find that there is alpha-tested and alpha-blended types of meshes.  
Using `diffuseTexture.hasAlpha = true` instead of opacityTexture changes mesh from alpha blended to alpha tested.

[Previous page](https://forum.babylonjs.com/t/solidparticlesystem-depthsort/7752.md?page=1)
