UE4 Curve Linear Color in Curve Atlas is not working above 1 (CurveTime)

Hello, I’m trying to create cell shader for post-process and for that I tried to use curve linear color in material. Material is based on material created in the video

But in my approach I decided to use curve and in the video he created ifs with B-inputs above 1 for highlight and white tints. But when i place the same treshold on 1 and above on my curve (CurveTime in material) - material just ignores that.

With value below 1 (CurveTime)

And value on or above 1 (CurveTime)

Material

Curve atlas contains only one CurveLinearColor

I think this is fundamentally the same issue I came across. Essentially I was trying to sample a color curve over time, which didn’t work.

I tried a few different inputs, and the only ones that seem to work are either scalar parameters or texture samples. Floats coming from other data don’t seem to work.

So the solution I found is to sample a gradient using the value you actually want as the UVs. I use a simple 2x2 texture. Black pixels on the left, white on the right. The texture sample’s smoothing does the rest.

Hope this helps!

1 Like