In this demonstration I'm only showing one object with the chromatic aberration effect, but the script works with any number of objects, and each can have its own custom behavior setting. To implement it, I generate three duplicate objects with red, green and blue colors. Then I procedurally offset them in different directions and overlay them on top of each other. In the VScript code, I control the animation, transparency and offset of these objects to create a dynamic chromatic aberration effect. Specifically, I lerp the positions of the colored objects to animate the distortion effect over time. I also modify their alpha values to fade them in and out. And I procedurally change the offset vectors using “noise functions“ to add variability to the aberration
Hide player controls
Hide resume playing