# GreasedLine can such a emissive effect be achieved?

**URL:** <https://forum.babylonjs.com/t/greasedline-can-such-a-emissive-effect-be-achieved/49138>\
**Category:** Questions\
**Created:** [March 29, 2024, 5:49am UTC](https://forum.babylonjs.com/t/greasedline-can-such-a-emissive-effect-be-achieved/49138 "2024-03-29T05:49:12Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![loveBJS](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/lovebjs/32/38564_2.png) [@loveBJS](https://forum.babylonjs.com/u/loveBJS)\
**Post date:** [March 29, 2024, 5:49am UTC](https://forum.babylonjs.com/t/greasedline-can-such-a-emissive-effect-be-achieved/49138/1 "2024-03-29T05:49:12Z")

</div>

GreasedLine can such a emissive effect be achieved?

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/4/9/49f1779e697fc41c3914ecaa89a9159c3b01b2ff.jpeg)

 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/f/2/f2368211924c640a5195d3ba43af86bca4b8db9f.jpeg)

> **[Babylon.js Playground](https://playground.babylonjs.com/#H1LRZ3%23475)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [March 29, 2024, 10:40pm UTC](https://forum.babylonjs.com/t/greasedline-can-such-a-emissive-effect-be-achieved/49138/2 "2024-03-29T22:40:16Z")

</div>

Seems like you did it already? 🙂 Using glow is a perfect to do it

---

<div class="post-metadata">

**Author:** ![mawa](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/mawa/32/12384_2.png) [@mawa](https://forum.babylonjs.com/u/mawa)\
**Post date:** [March 30, 2024, 7:57am UTC](https://forum.babylonjs.com/t/greasedline-can-such-a-emissive-effect-be-achieved/49138/3 "2024-03-30T07:57:08Z")

</div>

Agreed. I’m using this in my project at this moment. You can actually further work the material (with i.e. alpha\_add) you could also create a material with a fake glow. You can even instance it and make a second layer of greasedLines on top. Just unleash your creativity here (like I do 😁) This toy 🧒 is highly versatile and with very little cost on performance 😜

---

<div class="post-metadata">

**Author:** ![loveBJS](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/lovebjs/32/38564_2.png) [@loveBJS](https://forum.babylonjs.com/u/loveBJS)\
**Post date:** [April 1, 2024, 12:48am UTC](https://forum.babylonjs.com/t/greasedline-can-such-a-emissive-effect-be-achieved/49138/5 "2024-04-01T00:48:21Z")

</div>

What I want is for the middle of the first image to be white glowing outwards and you can set the glow effect with different colors. GreasedLine can only implement one color per entity  
 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/c/2/c2a2c4342e58aed10a81b5fca7a33288fe235b9d.jpeg)

---

<div class="post-metadata">

**Author:** ![mawa](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/mawa/32/12384_2.png) [@mawa](https://forum.babylonjs.com/u/mawa)\
**Post date:** [April 1, 2024, 7:46am UTC](https://forum.babylonjs.com/t/greasedline-can-such-a-emissive-effect-be-achieved/49138/6 "2024-04-01T07:46:13Z")

</div>

Yes, well, in case of the glow you can start by using neutralColor (an extend of the clearColor for the glow layer). And then, as you might know, you can create a shader or a node material using NME. The fact that it is greasedLines for mesh shouldn’t change anything. At least, not as far as I know (and I know only little 🤭 😁)  
May be someone else will be willing (have the time ⏳) to deliver the ready-to-use shader or NME? The force be with’em ⚔ 😂

Else, for the simple glow color check the PG below.

> **[Babylon.js Playground](https://playground.babylonjs.com/#LRFB2D%23575)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

* * *

Else, it shouldn’t take you all too long to find a base you can tweak from an existing node material or shader you should be able to find either in this forum or in the doc 🤔 …And meanwhile, have a great day 🕶

---

<div class="post-metadata">

**Author:** ![roland](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/roland/32/38940_2.png) [@roland](https://forum.babylonjs.com/u/roland)\
**Post date:** [April 2, 2024, 4:24pm UTC](https://forum.babylonjs.com/t/greasedline-can-such-a-emissive-effect-be-achieved/49138/7 "2024-04-02T16:24:44Z")

</div>

![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/a/3/a3f3792dabbadb5993dc53e3b1f510b6dcf99896.jpeg)

This can be done using a texture:

> **[Babylon.js Playground](https://playground.babylonjs.com/#H1LRZ3%23497)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

You might want to try to create an RGBA texture instrad of an RGB texture.
