# \#prepassrenderer

**URL:** https://forum.babylonjs.com/tag/prepassrenderer/48.md

[Latest](https://forum.babylonjs.com/latest.md) · [Categories](https://forum.babylonjs.com/categories.md) · [Tags](https://forum.babylonjs.com/tags.md)

---

## [Extending pre-pass renderer to support custom render targets](https://forum.babylonjs.com/t/extending-pre-pass-renderer-to-support-custom-render-targets/58862)

<div class="topic-metadata">

**Author:** [@shakdwipeea](https://forum.babylonjs.com/u/shakdwipeea)\
**Replies:** 3\
**Last updated:** [June 28, 2025, 8:50am UTC](https://forum.babylonjs.com/t/extending-pre-pass-renderer-to-support-custom-render-targets/58862 "2025-06-28T08:50:01Z")

</div>

I want to extend babylon’s pre-renderer to support some custom render-target(s). An example could be a id map rtt inspired by the one used in gpu-picking. Sample: https://playground.babylonjs.com/#3W87R0#2 I found a w…

---

## [Prepass renderer giving inconsistent reflectivity texture based on lights in the scene](https://forum.babylonjs.com/t/prepass-renderer-giving-inconsistent-reflectivity-texture-based-on-lights-in-the-scene/54387)

<div class="topic-metadata">

**Author:** [@Heaust-ops](https://forum.babylonjs.com/u/Heaust-ops)\
**Replies:** 2\
**Last updated:** [October 28, 2024, 11:05am UTC](https://forum.babylonjs.com/t/prepass-renderer-giving-inconsistent-reflectivity-texture-based-on-lights-in-the-scene/54387 "2024-10-28T11:05:21Z")

</div>

so when I have any light in the scene no matter where or how dim, the reflectivity texture for standard materials is white. when I remove said light, the reflectivity texture for standard materials becomes black. Wit…

---

## [Getting depth texture from PrePassRenderer into particle effect](https://forum.babylonjs.com/t/getting-depth-texture-from-prepassrenderer-into-particle-effect/51253)

<div class="topic-metadata">

**Author:** [@Joe\_Kerr](https://forum.babylonjs.com/u/Joe_Kerr)\
**Replies:** 5\
**Last updated:** [June 29, 2024, 12:28pm UTC](https://forum.babylonjs.com/t/getting-depth-texture-from-prepassrenderer-into-particle-effect/51253 "2024-06-29T12:28:40Z")

</div>

Hi everyone, Please have a look at this playground: https://playground.babylonjs.com/#1ASENS#356 In the shader, whenever I access ‘depthColor’ it just stops working (no errors). I am guessing my setup with the depth t…

---

## [Cannot use textures of PrePassRenderer](https://forum.babylonjs.com/t/cannot-use-textures-of-prepassrenderer/51489)

<div class="topic-metadata">

**Author:** [@Joe\_Kerr](https://forum.babylonjs.com/u/Joe_Kerr)\
**Replies:** 11\
**Last updated:** [June 29, 2024, 12:26pm UTC](https://forum.babylonjs.com/t/cannot-use-textures-of-prepassrenderer/51489 "2024-06-29T12:26:54Z")

</div>

Hi everyone, Please have a look at here: https://playground.babylonjs.com/#1ASENS#362 I left in a couple of commented lines. Idk what is going on there. Codewise getTarget() returns a PrePassRenderTarget which is just…

---

## [GreasedLine and PrepassRenderer PostProcess](https://forum.babylonjs.com/t/greasedline-and-prepassrenderer-postprocess/51001)

<div class="topic-metadata">

**Author:** [@Joe\_Kerr](https://forum.babylonjs.com/u/Joe_Kerr)\
**Replies:** 3\
**Last updated:** [June 3, 2024, 8:21am UTC](https://forum.babylonjs.com/t/greasedline-and-prepassrenderer-postprocess/51001 "2024-06-03T08:21:06Z")

</div>

Hi everyone, Please see here: Babylon.js Playground When the PrePassRenderer requires a texture (PrePassEffectConfiguration: {texturesRequired}), the GreasedLine loses its color. How can I make both work? Best wishes …

---

## [Access all PrePassRenderer Textures to be used for ComputeShader](https://forum.babylonjs.com/t/access-all-prepassrenderer-textures-to-be-used-for-computeshader/47578)

<div class="topic-metadata">

**Author:** [@Zuuhr](https://forum.babylonjs.com/u/Zuuhr)\
**Replies:** 2\
**Last updated:** [February 3, 2024, 10:40am UTC](https://forum.babylonjs.com/t/access-all-prepassrenderer-textures-to-be-used-for-computeshader/47578 "2024-02-03T10:40:45Z")

</div>

Hello! This is the first time I ask on this forum, so I hope I’m doing it correctly. So I’m working on a code that requires compute shaders to use camera info, like a deferred rendered would. I would like to use positio…

---

## [Multiple Persistent Shader Passes - how to?](https://forum.babylonjs.com/t/multiple-persistent-shader-passes-how-to/39728)

<div class="topic-metadata">

**Author:** [@gems](https://forum.babylonjs.com/u/gems)\
**Replies:** 5\
**Last updated:** [April 11, 2023, 6:36pm UTC](https://forum.babylonjs.com/t/multiple-persistent-shader-passes-how-to/39728 "2023-04-11T18:36:39Z")

</div>

Hello, I’m struggling to find a way to do multipass shader - so that I can have multiple persistent samplers which I can play around with on a final pass (and do generative feedback loops). At the moment I have no idea h…

---

## [Standard Material compilation error since 5.6.0](https://forum.babylonjs.com/t/standard-material-compilation-error-since-5-6-0/30607)

<div class="topic-metadata">

**Author:** [@julien-moreau](https://forum.babylonjs.com/u/julien-moreau)\
**Replies:** 8\
**Last updated:** [June 24, 2022, 8:04am UTC](https://forum.babylonjs.com/t/standard-material-compilation-error-since-5-6-0/30607 "2022-06-24T08:04:15Z")

</div>

HI all! I’m focusing on releasing the editor using Babylon.JS v5 but I’m facing an issue since version 5.6.0 that I can’t figure out. The problem is also that I fail to reproduce it in the playground and that’s a probl…

---

## [Rendering groups messing up highlight layers and 3D GUI](https://forum.babylonjs.com/t/rendering-groups-messing-up-highlight-layers-and-3d-gui/28224)

<div class="topic-metadata">

**Author:** [@jetavut](https://forum.babylonjs.com/u/jetavut)\
**Replies:** 9\
**Last updated:** [March 15, 2022, 12:12am UTC](https://forum.babylonjs.com/t/rendering-groups-messing-up-highlight-layers-and-3d-gui/28224 "2022-03-15T00:12:53Z")

</div>

I have a mesh that I want to render on top of other meshes. I also use highlight layers and a 3D GUI. When the mesh rendering group is modified, the highlight layer get messed up and the 3D GUI get rendered on top of a…

---

## [renderingGroupId and click detection](https://forum.babylonjs.com/t/renderinggroupid-and-click-detection/28150)

<div class="topic-metadata">

**Author:** [@jetavut](https://forum.babylonjs.com/u/jetavut)\
**Replies:** 2\
**Last updated:** [March 7, 2022, 12:15am UTC](https://forum.babylonjs.com/t/renderinggroupid-and-click-detection/28150 "2022-03-07T00:15:55Z")

</div>

I have a box inside a sphere. I have modified the box renderingGroupId to have it rendered on top of the sphere. The box also has an OnPickTrigger action but click events aren’t detected. I have created a playground: h…

---

## [Save every frame (VideoRecorder result seems blurry)](https://forum.babylonjs.com/t/save-every-frame-videorecorder-result-seems-blurry/26510)

<div class="topic-metadata">

**Author:** [@wsAndy](https://forum.babylonjs.com/u/wsAndy)\
**Replies:** 3\
**Last updated:** [February 5, 2022, 7:56am UTC](https://forum.babylonjs.com/t/save-every-frame-videorecorder-result-seems-blurry/26510 "2022-02-05T07:56:43Z")

</div>

Hello everyone, I want to save every frame and find that VideoRecorder is a choice. But the problem is that the result of VideoRecorder seems blurry. I find the same question here, but the approach changing the mimeT…

---

## [Edgerender color effect](https://forum.babylonjs.com/t/edgerender-color-effect/25304)

<div class="topic-metadata">

**Author:** [@shencong713](https://forum.babylonjs.com/u/shencong713)\
**Replies:** 1\
**Last updated:** [November 15, 2021, 2:42pm UTC](https://forum.babylonjs.com/t/edgerender-color-effect/25304 "2021-11-15T14:42:08Z")

</div>

picture first and second edgerender is support。 but how to achieve the effect like picture 3（affected by depth,top edgerender and other edgerender can set different color ）

---

## [PrePassRenderer cant find how to use it?](https://forum.babylonjs.com/t/prepassrenderer-cant-find-how-to-use-it/24611)

<div class="topic-metadata">

**Author:** [@Pryme8](https://forum.babylonjs.com/u/Pryme8)\
**Replies:** 7\
**Last updated:** [October 15, 2021, 10:04pm UTC](https://forum.babylonjs.com/t/prepassrenderer-cant-find-how-to-use-it/24611 "2021-10-15T22:04:20Z")

</div>

https://playground.babylonjs.com/#R0H3IN#1 So I am trying to think of the best way to take an emissive color and put it behind a the mesh that is emitting it while having the mesh take on a look that it has no emission …

---

## [Problem with prepass renderer and overlay+bounding boxes](https://forum.babylonjs.com/t/problem-with-prepass-renderer-and-overlay-bounding-boxes/15438)

<div class="topic-metadata">

**Author:** [@julien-moreau](https://forum.babylonjs.com/u/julien-moreau)\
**Replies:** 2\
**Last updated:** [November 5, 2020, 10:43pm UTC](https://forum.babylonjs.com/t/problem-with-prepass-renderer-and-overlay-bounding-boxes/15438 "2020-11-05T22:43:28Z")

</div>

Hey gods! (@CraigFeldspar and @sebavan) I have found another problem using prepass renderer (or at least using prepass renderer in SSAO2): the overlays and bouding boxes are not rendered anymore once the SSAO2 post-proc…

---

## [Problem with PrePassRenderer and Default Rendering Pipeline](https://forum.babylonjs.com/t/problem-with-prepassrenderer-and-default-rendering-pipeline/15401)

<div class="topic-metadata">

**Author:** [@julien-moreau](https://forum.babylonjs.com/u/julien-moreau)\
**Replies:** 5\
**Last updated:** [November 3, 2020, 5:58pm UTC](https://forum.babylonjs.com/t/problem-with-prepassrenderer-and-default-rendering-pipeline/15401 "2020-11-03T17:58:35Z")

</div>

Hey all! I have encountered a bug while mixing SSAO2 & Default rendering pipelines. In fact, I’m not forcing SSAO2 to use the legacy geometry buffer renderer and it works pretty well but once I enable the default render…
