# \#effect

**URL:** https://forum.babylonjs.com/tag/effect/257.md

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

---

## [Force recompile ProcedualTexture after updating #defines](https://forum.babylonjs.com/t/force-recompile-procedualtexture-after-updating-defines/62142)

<div class="topic-metadata">

**Author:** [@HiGreg](https://forum.babylonjs.com/u/HiGreg)\
**Replies:** 4\
**Last updated:** [January 20, 2026, 8:24am UTC](https://forum.babylonjs.com/t/force-recompile-procedualtexture-after-updating-defines/62142 "2026-01-20T08:24:13Z")

</div>

Can a ProceduralTexture be forced to recompile with updated defines? I’ve tried a lot of things in various combinations. // t is the NormalMapProceduralTexture // mat is the StandardMaterial t.defines="#define SOBEL" t…

---

## [MaterialDefines rebuilt every frame if needDepthPrePass enabled](https://forum.babylonjs.com/t/materialdefines-rebuilt-every-frame-if-needdepthprepass-enabled/57394)

<div class="topic-metadata">

**Author:** [@kzhsw](https://forum.babylonjs.com/u/kzhsw)\
**Replies:** 5\
**Last updated:** [March 26, 2025, 11:06am UTC](https://forum.babylonjs.com/t/materialdefines-rebuilt-every-frame-if-needdepthprepass-enabled/57394 "2025-03-26T11:06:08Z")

</div>

Engine: WebGL2 Version: 7.54.1 OS: Windows 10 Browser: Chromium Playground: Desc: When using needDepthPrePass on material with a lot of meshes, the performance went very slow. A quick profile shows that MaterialD…

---

## [setMatrix() is not working as expected in Babylon.js](https://forum.babylonjs.com/t/setmatrix-is-not-working-as-expected-in-babylon-js/57266)

<div class="topic-metadata">

**Author:** [@12202057](https://forum.babylonjs.com/u/12202057)\
**Replies:** 8\
**Last updated:** [March 21, 2025, 12:47pm UTC](https://forum.babylonjs.com/t/setmatrix-is-not-working-as-expected-in-babylon-js/57266 "2025-03-21T12:47:47Z")

</div>

I’m having trouble with the setMatrix() function in Babylon.js playground. Here’s a simplified version of my code: \`// Attributes attribute vec3 position; uniform mat4 worldViewProj; // 월드-뷰-투영 행렬 …

---

## [DepthRenderer: effect not cached](https://forum.babylonjs.com/t/depthrenderer-effect-not-cached/56092)

<div class="topic-metadata">

**Author:** [@kzhsw](https://forum.babylonjs.com/u/kzhsw)\
**Replies:** 2\
**Last updated:** [January 22, 2025, 12:25am UTC](https://forum.babylonjs.com/t/depthrenderer-effect-not-cached/56092 "2025-01-22T00:25:11Z")

</div>

Background Version: git master and 7.44.0 Browser: any Engine: any Playground: Babylon.js Playground Desc In DepthRenderer, effects are expected to be cached, not rebuilt every frame, to save performance. Actual As…

---

## [Extending HighlightLayer to work with gaussian splatting](https://forum.babylonjs.com/t/extending-highlightlayer-to-work-with-gaussian-splatting/53217)

<div class="topic-metadata">

**Author:** [@kmatzen](https://forum.babylonjs.com/u/kmatzen)\
**Replies:** 2\
**Last updated:** [September 5, 2024, 6:36am UTC](https://forum.babylonjs.com/t/extending-highlightlayer-to-work-with-gaussian-splatting/53217 "2024-09-05T06:36:56Z")

</div>

Does anyone have an opinion on the best way to support HighlightLayer for gaussian splat assets? I took a look into the HighlightLayer implementation and it seems to use the glowMapGeneration shader even if the mesh has…

---

## [CameraShake and PropertyDistanceAttractor: Enhance your BabylonJS scenes with dynamic behaviors](https://forum.babylonjs.com/t/camerashake-and-propertydistanceattractor-enhance-your-babylonjs-scenes-with-dynamic-behaviors/39158)

<div class="topic-metadata">

**Author:** [@Dok11](https://forum.babylonjs.com/u/Dok11)\
**Replies:** 8\
**Last updated:** [March 28, 2023, 10:51am UTC](https://forum.babylonjs.com/t/camerashake-and-propertydistanceattractor-enhance-your-babylonjs-scenes-with-dynamic-behaviors/39158 "2023-03-28T10:51:03Z")

</div>

Hello BabylonJS community, I’m excited to share two new behavior classes I’ve created to help make your BabylonJS scenes even more dynamic and interactive: CameraShake: This behavior class adds a camera shake effect,…

---

## [How to create an effect for Hide n Seek game?](https://forum.babylonjs.com/t/how-to-create-an-effect-for-hide-n-seek-game/38520)

<div class="topic-metadata">

**Author:** [@Rata\_Blanca](https://forum.babylonjs.com/u/Rata_Blanca)\
**Replies:** 2\
**Last updated:** [February 26, 2023, 5:29pm UTC](https://forum.babylonjs.com/t/how-to-create-an-effect-for-hide-n-seek-game/38520 "2023-02-26T17:29:20Z")

</div>

Is there a way for making an effect like this? It’s like a bunch of rays which don’t go through the meshes. I don’t even know what’s the properly name of such effect :smiley: It’s like a spotlight but with some limited…

---

## [Create starship engine flare](https://forum.babylonjs.com/t/create-starship-engine-flare/38139)

<div class="topic-metadata">

**Author:** [@Vortex](https://forum.babylonjs.com/u/Vortex)\
**Replies:** 14\
**Last updated:** [February 14, 2023, 7:05pm UTC](https://forum.babylonjs.com/t/create-starship-engine-flare/38139 "2023-02-14T19:05:26Z")

</div>

After seeing this engine “flare” (the fire that comes out of the engine) in the Bad Batch (animated TV show), I thought it would be cool to add this to a model. Does anyone have any idea how to do something like this usi…

---

## [SSAO per material, is that even possible?](https://forum.babylonjs.com/t/ssao-per-material-is-that-even-possible/37778)

<div class="topic-metadata">

**Author:** [@joie](https://forum.babylonjs.com/u/joie)\
**Replies:** 5\
**Last updated:** [February 8, 2023, 6:26pm UTC](https://forum.babylonjs.com/t/ssao-per-material-is-that-even-possible/37778 "2023-02-08T18:26:16Z")

</div>

Hi there, For a project, we have a room with a wardrobe. The room has lightmap baked so it looks gorgeus. But the wardrobe doesn’t, because it is dynamic and should be able to be opened and changed in many ways. So w…

---

## [ColorCurves UI to tweak visually the colors](https://forum.babylonjs.com/t/colorcurves-ui-to-tweak-visually-the-colors/36269)

<div class="topic-metadata">

**Author:** [@metafred](https://forum.babylonjs.com/u/metafred)\
**Replies:** 1\
**Last updated:** [December 5, 2022, 11:28am UTC](https://forum.babylonjs.com/t/colorcurves-ui-to-tweak-visually-the-colors/36269 "2022-12-05T11:28:24Z")

</div>

Hello The ColorCurves effect has 12 parameters. Is there a UI to be able to play dynamically with them? Or could we copy-paste values from elsewhere (like I would copy rgb colors from photoshop for example)? Thank you…
