Primitive chromatic aberration effect for env_screeneffect #300
+295
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 byenv_screeneffect
, and they start at100
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:
Chromatic Blur:
Chromatic Aberration:
PR Checklist
develop
branch OR targets another branch with a specific goal in mind