0
$\begingroup$

I'm trying to make a glow stick. Current result (it's just a stick with emission shader) looks like this:

enter image description here

Problem is that, it looks really boring. So to make it more interesting and better, I want to make the glowing effect to fade at the end of the stick like in this reference:

enter image description here

How could I make the glow effect to fade at the end of the stick?

$\endgroup$
1
$\begingroup$

Here's one way. This assumes that the long axis of your glow stick is the Z axis.

The Texture Coordinate node will give you a value for each dimension that varies between 0 and 1, in the form of a color map.

The separateXYZ node will give you just the Z value.

The ColorRamp converts that value into a single color.

My color ramp goes from black to white, but you can change the color

  1. Select the color ramp
  2. click in the vicinity of one of the two pointers
  3. click on the color patch just about the Fac input
  4. Select a color from the color picker

There are many ways to adjust the color ramp. You can move the pointers around. THe most useful to you might be that moving the right pointer farther left will reduce the area where the fade happens.

Glow shader

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.