Page MenuHome

Eevee Color Ramp Ease Optimisation
ClosedPublic

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

Details

Summary

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) : https://twitter.com/hypersomniac_/status/1229133414789525504

@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.



Patch:


Original:

Diff Detail

Repository
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.