Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Primitive chromatic aberration effect for env_screeneffect #300

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

Blixibon
Copy link
Member

This PR adds two new effect types: Chromatic Blur and Chromatic Aberration. The former overlays 3 different frames of red, green, and blue tints respectively with different offsets. The latter does the same thing, but stretches the frames to distort colors based on how far away they are from the middle of the screen. Parameters like the offset or tint of each frame can be modified via cvars prefixed by r_chromatic_aberration. The effects themselves are controlled by env_screeneffect, and they start at 100 to avoid conflicts with any potential mod effects.

Note that I am not experienced with post-processing elements and there are likely better ways of programming these effects. I originally developed these for an Entropy : Zero-related project, but I decided to try bringing them to Mapbase because a generic chromatic aberration effect could come in handy for other designers.


No effect active:

mapbase_demo010000

Chromatic Blur:

mapbase_demo010001

Chromatic Aberration:

mapbase_demo010002


PR Checklist

  • My PR follows all guidelines in the CONTRIBUTING.md file
  • My PR targets a develop branch OR targets another branch with a specific goal in mind

Copy link

@1upD 1upD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, love this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants