ENB Ray Tracing Global Illumination
Added 2023-05-18 11:48:28 +0000 UTCThis shader uses a simple ray marching technique to trace rays through the scene and accumulate the color and distance along the ray.
It's a dynamic shader and it will provide finer quality ray tracing the more complex the scene is.
The effect is very subtle, as the shader is dynamic. Where it's not needed, you won't see a difference. Where it works, the shader has an initial setup to produce a subtle but realistic effect.
If you want a more aggressive approach, play with the values: raise rt step from 20 to 100 for example. To compensate, raise color threshold from 0.10 to 0.20. You can fine tune the effect by experimenting with the settings.
Keep in mind that this code is not a complete ray tracing solution and would not provide the same level of accuracy and realism as hardware-accelerated ray tracing.
The benefit is that this shader is not costly on performance, but still produces a relative good ray tracing effect.
PATCHES
Patches are already provided for several ENBs. Please ask with a comment for the patch you want, and I will send it to you in a PM.
ATTENTION: Long loads are because of how long ENB takes to compile shaders. The more complex, the longer it takes.
kingeric1992 released a wrapper that cuts loading times to 1/5 ! Go get it from his Patreon page (and become a patron as a thank you, while you're at it)!
If you get overexposed results, it's because you have erroneous settings in your enbeffectpostpass.fx.ini file.
Either delete the whole file to reset it, or delete the following lines:
-----------------------RAY TRACING=0
Enable Ray Tracing=true
Ray Tracing Step=20
Max. Tracing Depth=10
Max. Reflections/Pixel=1
Field Of View=90
Near Plane=0.1
Far Plane=1000.0
Color Threshold=0.1
Enable Blended Alpha=false
Blended Alpha=1.0
Enable Gamma Correction=true
Ray Tracing Multiplier=1
Ray Tracing Depth=10
This will reset the ray tracing settings on your ENB preset.