Skip to content
Loading audio player...

Fenris releases CORTAO to improve ambient shading in games ​

Fenris Creations made CORTAO publicly available on November 12, giving graphics developers another way to calculate the soft darkening around objects and where surfaces meet. Daniel Isheden's technique targets a familiar rendering problem: dark halos and shading that shifts as the camera moves. The release includes a reference implementation and a version adapted to Carbon, the engine used by EVE Frontier.

Ambient occlusion helps a chair look connected to the floor and gives overlapping shapes depth. CORTAO estimates it from the current camera view, so it can respond when objects move or players change a scene. Fenris says it tested the technique in EVE Frontier's changing environments, from enclosed spaces to large structures. The game remains in development.

The author's 4K comparison cycles through GTAO and CORTAO. Watch the dark patches behind the chair backs and against the wall. The labels and GPU timings belong to the author's RX 7900 XT demonstration. We haven't independently benchmarked it. Video and poster: Daniel Isheden, from the reference project. MIT license and attribution.

In the café comparison, the dark patches behind thin chair frames become much less prominent when CORTAO appears.

The technical explanation describes how CORTAO turns nearby depth samples into small circular surfaces, then estimates how much ambient light those surfaces block. It works with information already visible to the camera. Hidden geometry is still missing from that information, so this remains an approximation. Fenris reports lower error than GTAO in its test scenes, but those results don't establish a speedup for every game or GPU.

What's involved in using it ​

The Carbon repository supplies HLSL and GLSL shader code and integration instructions. A renderer needs to provide depth and surface-normal data, wire up the compute passes, and use the resulting occlusion in its lighting. The documentation lists DirectX 11 and 12, OpenGL, and Vulkan support, with a documented workaround for HLSL targets below Shader Model 6.7. This is work for an engine or rendering programmer.

There are costs to check beyond the main shader. The reference implementation includes an optional spatial filter, but relies on the host renderer to handle temporal filtering, which combines information across frames to reduce noise. Its packed depth-and-normal buffer also needs more memory than a 16-bit depth buffer. Fenris puts that increase at about 21.1 MB at 4K in its integration discussion.

Both implementations use the MIT license (reference, Carbon), which requires retaining the copyright and permission notice. The reference project's version log already records fixes after the public release: November 14 corrected off-center projections when the vertical axis is flipped, and November 15 corrected conflicting defaults and adjusted filter sensitivity. Start with the current code when evaluating it, then check camera movement and thin geometry in your own scenes.