

Of course you can also custom-program your own logic here, these two sample snippets are just for convenience. In optics, chromatic aberration (CA), also called chromatic distortion and spherochromatism, is a failure of a lens to focus all colors to the same point. You may tweak these values to your liking.ĭo note that the SceneScript logic is only executed in the editor when you click the Run Preview button at the top of the editor. Try setting the Min value to 0.0 to disable the effect when no audio is being played and set the Max value to 3.0 to have a strong effect when the beat of music is playing.
CHROMATIC ABERRATION EFFECT CODE
Click on Snippets at the top of the code window, then select Replace Script. Wallpaper Engine comes with multiple sample code snippets here that you can access. To get started, scroll to the Strength property of the effect and click on the cogwheel icon next to it. We recommend using the Strength property for this, though other properties may also be used. The Chromatic Aberration effect itself is static but you can animate it with the help of SceneScript. Strength: The strength of the effect, this option is best coupled with SceneScript to animate this effect.Opacity mask: Allows you to draw a mask to reduce or entirely disable the effect in parts of your image.That is why lots of devs put lens flares in when the sun is in your field of view. Chroma: The color pair used for the chromatic aberration artifacts. It is not a result of a failing camera, chromatic aberration is caused by the lens, so in essence, they are trying to give the game a cinematic feel by trying to replicate the look of the game through a camera lens.Barrel: Will apply the effect in a rounded rectangle around the entire layer.Radial: Will apply the effect in a circular manner around a given point.Directional: Will apply the effect into a certain direction, you can determine the direction below.

The process is quite simple: upload the photo, dial in the. You can determine the center point below. This is another website that lets you add chromatic aberration effect online. Expansion: Will apply the effect from a certain center point.Mode: Change the overall mode of the chromatic aberration effect:.The effect itself is static but you can utilize SceneScript to create animations for it. The Chromatic Aberration effect creates a multi-colored outlined similar to artifacts you might find on photographs.
