Chromatic Aberration MotionBlur

  • ShapeShiftingGhost
  • ShapeShiftingGhost's Avatar Topic Author
  • Offline
  • Posts: 2
2 years 4 months ago - 2 years 4 months ago #1 by ShapeShiftingGhost
Is is practical to have a shader that uses chromatic aberration for motion blur, so that only when the camera frame moves the distortion of color creates an illusion of motion blur.

Please Log in or Create an account to join the conversation.

  • Posts: 177
2 years 4 months ago #2 by luluco250
You mean to blur each color channel in different degrees? Could be interesting and not hard at all to implement.

Something like this should work: pastebin.com/NX05AGZ4

I just wrote it up on my phone so I can't test it.
The following user(s) said Thank You: Scorpio82CO

Please Log in or Create an account to join the conversation.

  • Posts: 220
2 years 4 months ago #3 by DeMondo

luluco250 wrote: You mean to blur each color channel in different degrees? Could be interesting and not hard at all to implement.

Something like this should work: pastebin.com/NX05AGZ4

I just wrote it up on my phone so I can't test it.


---

- Ive tried your new shader but received this message:

Failed to compile .. Chromatic_Aberration_MotionBlur.fx(11, 9): error X3000: syntax error: unexpected 'identifier'

Please Log in or Create an account to join the conversation.

  • ShapeShiftingGhost
  • ShapeShiftingGhost's Avatar Topic Author
  • Offline
  • Posts: 2
2 years 3 months ago #4 by ShapeShiftingGhost
There is a error in the code

Please Log in or Create an account to join the conversation.

  • Posts: 161
2 years 3 months ago #5 by Fu-Bama
Line number 11 must be
uniform float fFrameTime <source = "frametime";>;
Here's the full code:
Warning: Spoiler! [ Click to expand ]

Please Log in or Create an account to join the conversation.

  • Posts: 2
2 years 2 months ago #6 by Spectre
Could you do something similar to the effect found in the ChromaticAberration.fx where you can change the strength of the effect.

Please Log in or Create an account to join the conversation.