Is there any way to do chromatic aberration?

Is there any way to make chromatic aberration? from what I have read, it seems impossible, I just need the slightest, red and cyan colours and that’s it.

if you will add it to a 3d object you need a texture for that
and if you are doing it for a gui you can use UIGradient

and if you want it to change with script you can add surface gui to a part

image

the only way i know of is to use viewportframes that are transparent and slightly tinted red/blue

Im not sure how to make that, and won’t the cancel each other out?

look up a tutorial on viewportframes, also i forgot to add that you offset the frames by a few pixels

heres the layout (the stuff you want to be shown in the viewport must be cloned and parented to the viewport)

for each viewport you set the size to 1 and the position to some offset (here i used -10 for the blue viewport and 10 for the red)
image

the backgroundtransparency needs to be 1 so theres no white background covering the screen
image

and the imagetransparency should be somewhat transparent, and the color can be set to whatever you want
image

lastly, the viewport’s currentcamera should be set to the workspace.CurrentCamera (if you want the aberration effect to follow where the camera is)

heres a short clip showcasing how it looks

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.