Quantcast
Channel: Questions in topic: "shader programming"
Viewing all articles
Browse latest Browse all 169

How would I join two gradients together in shader graph?

$
0
0
In shader graph currently have two nice gradients - created using the Lerp node - and would like to join them together to make something akin to the actual gradient node. I can't use the gradient node as that doesn't allow enough control in scripts or the inspector.

The end goal of this is to make a beam-in style shader for a logo. The first gradient will go from white to some HDR colour then the second from the same HDR colour to transparent so that when I move this across my texture one side will be transparent, the centre of this zone will be a bright glowy colour and the other side the regular texture. I've made the effect using the gradient node but I'm not going to be popular if I leave this in a state in which it's only editable through the shader graph.

I've got a feeling that the solution will involve UVs and tiling but can't figure out much beyond that! Thanks in advance for your help

Viewing all articles
Browse latest Browse all 169

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>