0
$\begingroup$

Is it possible to affect the emissive shader with the color ramp at all? I would like to do something like this (image below):

enter image description here

$\endgroup$
  • 1
    $\begingroup$ if you plug the ColorRamp into the Emission node it will affect it, but maybe give more details of what you want to do $\endgroup$ – moonboots Jul 16 at 17:06
  • $\begingroup$ how do you want to effect the emissive shader? $\endgroup$ – RBlong2us Jul 16 at 18:13
  • $\begingroup$ made an edit to show what i mean $\endgroup$ – spockers Jul 16 at 18:21
1
$\begingroup$

You could use the supplied Gradient node, mapped appropriately..

enter image description here

Here, just using the Generated texture space on a plain mesh circle.. (it could be a sphere, if you want it to be) The Mapping node rotates the gradient to the right orientation, the Color Ramp converts the input 0-1 value to a range of colors.

enter image description here

(With a bit of Glare added in the compositor to simulate the reference)

$\endgroup$
2
$\begingroup$

That can be done using the geometry input node and doing that you'll have to tune the Z value depending on the object geometry:

enter image description here

The node math is done this way, as in this example Z is going from -1 to +1. So dividing by 2 obtains something between -0.5 and +0.5 and add 0.5 obtains something between 0 and 1 which is what we want for the colorramp.

You can also use a UV map (to avoid geometric calculation). For instance make the UV map with 'project from view (bounds)', so that you can:

enter image description here

$\endgroup$
  • $\begingroup$ thank you that's exactly what i needed. I don't fully understand why the math node is used in this way but if it works it works ¯_(ツ)_/¯ $\endgroup$ – spockers Jul 16 at 18:54
  • $\begingroup$ I've added some explanation about the math. $\endgroup$ – lemon Jul 16 at 18:59

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.