CobraFX comprises SirCobra's contribution of shaders for ReShade. The shaders are designed for in-game photography.
Important
All compute shaders (filename has _CS
-Suffix) only work with ReShade 5.9 or newer, DirectX 11 or newer, OpenGL 4.3 or newer and Vulkan!
Note Gravity, Color Sort and Cobra Mask require depth-buffer access to unlock all features.
Gravity.fx lets pixels gravitate towards the bottom of the screen inside the game's 3D environment. You can filter the affected pixels by depth and by color.
It uses a custom seed (currently the Mandelbrot set) to determine the intensity of each pixel. Make sure to also test out the texture-RNG variant with the picture gravityrng.png
provided in the Textures folder. You can replace the texture with your own texture, as long as it is 1920x1080, RGBA8 and has the same name. Only the red-intensity is taken. So either use red images or greyscale images. The brighter the pixel inside the texture, the more intense the effect will be at this location ingame.
This shader consumes a high amount of resources on high resolutions (4k+), so on large resolutions, lower the Gravity Intensity
or check out Gravity_CS.fx instead.
Gravity_CS.fx is the compute shader version of Gravity.fx. It has a better color selection, and an inverse gravity option. It runs slower on normal resolutions, but a lot faster than Gravity.fx on higher resolutions, and you can downsample / hotsample without issues.
To increase performance, you can lower the Gravity Intensity
slider or change the GRAVITY_HEIGHT
preprocessor parameter. This parameter controls the resolution of the effect along the gravitational axis. At lower resolutions, you gain performance at the cost of visual fidelity.
Colorsort_CS.fx is a compute shader, which sorts colors from brightest to darkest along a user-specified axis. You can filter the selection by depth and color. Place your own shaders between Color Sort: Masking
and Color Sort: Main
to only affect the sorted area.
The shader consumes a lot of resources. To balance between quality and performance,
adjust the preprocessor parameter COLOR_HEIGHT
. COLOR_HEIGHT
(default value: 10) multiplied by 64 defines the resolution of the effect along the sorting axis. The value needs to be integer. Smaller values give performance at cost of visual fidelity. 8: Performance, 10: Default, 12: Good, 14: High
RealLongExposure.fx enables you to capture changes over time, like in long-exposure photography. It will record the game's output for a user-defined amount of seconds to create the final image, just as a camera would do in real life. A Gamma
slider allows to regulate the highlight persistence.
If you want a continuous effect, make sure to also check out the old LongExposure.fx which fakes the effect or Trails.fx by BlueSkyDefender for similar brightness results with improved smoothness and depth effects.
Tip: Right-click the Start Exposure
button to bind this functionality to a hotkey for convenient usage.
Realistic Long-Exposure in action
Droste.fx warps the image-space to recursively appear within itself. It features a circular and rectangular shape and can be applied as continuous spiral.
Frequency_CS.fx creates an effect also known as Frequency Modulation
, which scans the image from left to right and releases a wave whenever a luminance-based threshold is reached. The pixel luminance is summed up and modulated depending on a given period. Additional parameters give the effect a unique look. A masking stage enables filtering affected colors and depth.
CobraMask.fx allows to apply ReShade shaders exclusively to a selected part of the screen. The mask can be defined through color and scene-depth parameters. The parameters are specifically designed to work in accordance with the color and depth selection of other CobraFX shaders.
This shader works the following way: In the effect window, you put "Cobra Mask: Start" above, and "Cobra Mask: Finish" below the shaders you want to be affected by the mask. When you turn it on, the effects in between will only affect the part of the screen with the correct color and depth. This effect adapts to the current scene. If you need to cover a fixed area of the screen, like the game UI, check out UI Mask.
Cobra Mask applying the Comic.fx debug layer to the foreground
CobraFX is registered in the latest installer of ReShade. Make sure you tick this repository when selecting the shader packages during the installation.
- Download this repository
- Extract the downloaded archive file somewhere
- Start your game, open the ReShade in-game menu and switch to the "Settings" tab
- Add the path to the extracted Shaders folder to "Effect Search Paths"
- Add the path to the extracted Textures folder to "Texture Search Paths"
- Switch back to the "Home" tab and click on "Reload" to load the shaders
Check out the language reference document to get started on how to write your own shader!
And make sure to join the ReShade forum or discord if you want to share your ideas or need help :
If you want to report a bug, you can open an issue on GitHub or report it in the ReShade discord.