Page MenuHome

Eevee Color Ramp Ease Optimisation

Authored by Charlie Jolly (charlie) on Feb 18 2020, 3:22 PM.



This patch provides an optimisation for Ease (Smoothstep) setting in the color ramp node. This optimisation exists already for Constant and Linear modes.

Based on a Twitter thread here from @Bartosz Moniewski (monio) and comment from @Clément Foucault (fclem) :

@Bartosz Moniewski (monio) has tested the patch with the following observations.

I tested this Color Ramp smoothstep diff. LGTM. There are small differences when stop points are really close but acceptable imho.



Diff Detail

rB Blender

Event Timeline

I assume that differences in second example are caused by limited resolution of generated texture. Pixel values are averaged when stops are very close. Smoothstep version doesn't have this precision issues.

Looks good to me! Will commit that tomorrow! Thanks for the patch!

This revision is now accepted and ready to land.Feb 19 2020, 1:28 AM
This revision was automatically updated to reflect the committed changes.