How do I fade along the z axis in this decal?

I’ve got this material that produces a black box on a decal, and it can be focused or defocused based on a parameter.

I’m trying to get it to fade as it goes down the z-axis, but I can’t figure out how to rotate a linear gradient to get it to do that. I’ve tried rotators and rotateAboutAxis but can’t seem to get any good results.

not sure if this is what you mean but this causes it only to be drawn on top

No, but this might be even better than what I was going for. Thanks!

1 Like