# Making custom chromatic aberration. Can I distort color channels individually?

**URL:** <https://forums.unrealengine.com/t/making-custom-chromatic-aberration-can-i-distort-color-channels-individually/443742>\
**Category:** Rendering\
**Tags:** Depth-Of-Field, Post-Processing, unreal-engine, UE4, question\
**Created:** [February 20, 2019, 1:21am UTC](https://forums.unrealengine.com/t/making-custom-chromatic-aberration-can-i-distort-color-channels-individually/443742 "2019-02-20T01:21:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lord\_Puj](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lord\_Puj](https://forums.unrealengine.com/u/Lord_Puj)\
**Post date:** [February 20, 2019, 1:21am UTC](https://forums.unrealengine.com/t/making-custom-chromatic-aberration-can-i-distort-color-channels-individually/443742/1 "2019-02-20T01:21:30Z")

</div>

I’m trying to make a post process and I’ve run into a bit of trouble. My goal is to create a custom chromatic aberration effect that I can control based on depth of field. I’d like it to behave the same as depth of field, only instead of blurring the image in the areas that are out of focus, it separates the color channels more and more. I’ve got the scene texture and I’ve separated the color channels. Is there some node I can pass them through to stretch, translate, or otherwise distort them based on a 0 to 1 variable before I append them again? That variable would come from the depth of field function, or something from the pixel depth function. Is what I’m describing possible? Am I looking at it all wrong? Thanks for the help.

---

<div class="post-metadata">

**Author:** ![S-ed](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/s-ed/32/1194558_2.png) [@S-ed](https://forums.unrealengine.com/u/S-ed)\
**Post date:** [February 20, 2019, 1:34pm UTC](https://forums.unrealengine.com/t/making-custom-chromatic-aberration-can-i-distort-color-channels-individually/443742/2 "2019-02-20T13:34:38Z")

</div>

You have to deal with UV coordinates to scale the screen texture. Here’s example of Depth Chromatic aberration. It’s not optimized, but a good place to start.

I’ve scaled Red and Green channels by 2% and 1% respectively by using Remap to Range. This function is useful if you need to set U and V separately. Lerp just blends scaled UV with original depending on Depth.

Keep in Mind that it’s better to blend UV’s an not Scene Color.

 ![269120-screenshot1550669187.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/0/b/c0bca9a55b7b258a3d5bc507cf16811a557c56f1.jpeg)

---

<div class="post-metadata">

**Author:** ![Starkium](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/starkium/32/1194588_2.png) [@Starkium](https://forums.unrealengine.com/u/Starkium)\
**Post date:** [March 23, 2019, 11:57am UTC](https://forums.unrealengine.com/t/making-custom-chromatic-aberration-can-i-distort-color-channels-individually/443742/3 "2019-03-23T11:57:39Z")

</div>

HELL YEAH, I’m gunna use this for my enter the spider-verse VR game.

---

<div class="post-metadata">

**Author:** ![play\_and\_learn](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/play_and_learn/32/1028001_2.png) [@play\_and\_learn](https://forums.unrealengine.com/u/play_and_learn)\
**Post date:** [April 8, 2025, 10:24am UTC](https://forums.unrealengine.com/t/making-custom-chromatic-aberration-can-i-distort-color-channels-individually/443742/4 "2025-04-08T10:24:03Z")

</div>

What if it got multiple scene texture layers? Should I simply copy & paste and manually operate them? Or maybe a better,autometic way avaliable?
