Chromatic Aberration MotionBlur

  • ShapeShiftingGhost
  • ShapeShiftingGhost's Avatar Topic Author
  • Offline
More
2 years 9 months ago - 2 years 9 months ago #1 by ShapeShiftingGhost
Chromatic Aberration MotionBlur was created 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.
Last edit: 2 years 9 months ago by ShapeShiftingGhost.

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

More
2 years 9 months ago #2 by luluco250
Replied by luluco250 on topic Chromatic Aberration MotionBlur
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.

More
2 years 9 months ago #3 by DeMondo
Replied by DeMondo on topic Chromatic Aberration MotionBlur

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
More
2 years 9 months ago #4 by ShapeShiftingGhost
Replied by ShapeShiftingGhost on topic Chromatic Aberration MotionBlur
There is a error in the code

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

More
2 years 9 months ago #5 by Fu-Bama
Replied by Fu-Bama on topic Chromatic Aberration MotionBlur
Line number 11 must be
uniform float fFrameTime <source = "frametime";>;
Here's the full code:
Warning: Spoiler!

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

More
2 years 7 months ago #6 by Spectre
Replied by Spectre on topic Chromatic Aberration MotionBlur
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.