# Cannot use textures of PrePassRenderer

**URL:** <https://forum.babylonjs.com/t/cannot-use-textures-of-prepassrenderer/51489>\
**Category:** Bugs\
**Tags:** prepassrenderer, texture\
**Created:** [June 20, 2024, 9:57am UTC](https://forum.babylonjs.com/t/cannot-use-textures-of-prepassrenderer/51489 "2024-06-20T09:57:40Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [June 29, 2024, 9:53am UTC](https://forum.babylonjs.com/t/cannot-use-textures-of-prepassrenderer/51489/11 "2024-06-29T09:53:42Z")

</div>

> [@Evgeni\_Popov](#):
>
> You should be able to use the depth texture with a particle system shader, because the latter does not use the prepass renderer and so does not write to the prepass renderer textures.

I was wrong, because even if the particle system shader does not write to the depth texture, the latter is still bound to the framebuffer by the prepass renderer, which is enough to trigger the error…

I think you should either only use the depth renderer if you only need the depth texture, or the geometry buffer renderer if you also have to generate other textures (normal, position, etc), but not use the prepass renderer.

---

_[View the full topic](https://forum.babylonjs.com/t/cannot-use-textures-of-prepassrenderer/51489)._
