Oneminus node not behaving properly even with a clamp node

Oh wow, I forgot all about gamma woes…

Anyways, I ended up reworking a lot of it and greatly simplified it all. Instead of making two separate sets of calculations, for the up and down Z, I just used an absolute value to mirror it. I used my range remapping function that I made to clip things out. I think I ended up using an input range of 0.05 to 0.2 and scaled that to 0 to 1. After that, I used a power function to control/smooth things over a little more and it works with low values now.

Basically, it’s a scanning/pulse wave effect that is world axis based (you can switch for different axis, but I wanted it in the Z) and is completely agnostic to the model’s position or rotation. It will always swipe up/down, no matter what way the model is turned. It’s more or less a world Z aligned effect, but is localized to the model so that it allows the model to be moved freely on the world Z axis and still have the effect start from the bottom of the actor’s bounds.

PS: Ignore the terrible tree model. I threw it together in less than three minutes; for the sake of experimentation. I have some real models that I’m using an emissive effect like this on though.