Simple gradient

Been fumbling around google for too long, can someone tell me or just show me a node setup screenshot to get a simple gradient in cycles. I can do it using an image texture, but I’m trying to do this model without outside images. I think colorramp is what I need. Something like this:


Here is one of the ways of doing it:


The three nodes before Emission shader are your gradient :slight_smile:
You can also insert ColorRamp before Mix node to control the gradient, use different mix modes and so on…

Another way would be using Gradient texture node, but you’ll have to transform your coordinates via Mapping node to get the direction you want. It’s more flexible, though:


Thanks Stan, that works perfectly.