Diagonal Scanlines on a Material

Hi Everyone, first post here so bear with me!
I’m struggling with trying to create an interaction shader for a project I’m working on. Its meant to look like PEAK’s shader where when you hover your crosshair over an object you can pick up, it glows orange with the diagonal moving lines. I have the moving lines and glowing so far, but no matter what I try I can’t get the lines to change direction. Any help would be greatly appreciated!

a CustomRotator node after your add (or somewhere near there) maybe? Or try changing the divisor for each of the XYZ values coming off of your LocalPosition node, like divide X by 5, Y by 15, z by 30 then reappend.


Is this what you meant? It doesn’t seem to be working. Sorry I’m newish to Materials

It looks like you’re over complicating it.. I’d just use a texture for the scan lines i.e. texture with black an white lines that you can use as an alpha for a lerp node (lerp node inputs are your two colors).. you plug the custom rotator into the UVs of that alpha texture, control the rotation angle with a single variable going in to rotation angle.

Also in your diagram, you can use a make float 2 (or 3 etc) node instead of append many.

Here, I quickly built a basic version, the lines scroll in the rotation direction, the texture is a simple black and white line texture, you can increase the amount of lines by adjusting the scale. Change the rotation angle with the rotation variable.

Or.. this way if you only want the bright green to be emissive

Thank you very much for all your help, this worked perfectly!!

1 Like

It gets easier the more you do it! Glad I could help

1 Like