Overview

HTrace Ambient Occlusion combines three of the most popular ambient occlusion techniques into a single asset, offering a highly scalable and adaptive system for AO computation.
Occlusion Modes
RTAO (Ray Traced Ambient Occlusion) — hardware-accelerated, ray traced ambient occlusion. Provides the most physically accurate and stable results compared to screen-space techniques.
Pros: doesn't suffer from screen-space limitations, the most accurate of all three.
Cons: requires ray-tracing capable hardware and API, heavily relies on denoising, has the highest performance cost of all three.
GTAO (Ground Truth Ambient Occlusion) — an advanced screen-space algorithm based on the latest GTAO research, augmented with Visibility Bitmasks. Basically, it's as good as it gets in screen space.
Pros: accurate, robust, captures both small details and large-scale occlusion well.
Cons: usually requires denoising to gather enough samples, limited by its screen-space nature (no information about offscreen or occluded geometry).
SSAO (Screen Space Ambient Occlusion) — the fastest of the three modes, both in terms of raw performance and ease of setup. Heavily inspired by the Mini Engine AO.
Pros: the fastest ambient occlusion, doesn't require denoising or motion vectors, zero temporal lag.
Cons: doesn't capture small details well, is very approximate, and not physically correct. Same screen-space limitations as GTAO.



Main Features
Full Integration into the Rendering Pipeline: HTrace AO doesn't simply overlay its result on top of the image — it fully replaces the native ambient occlusion effect. The integration happens automatically and doesn't require package customization or manual setup. As a result, it correctly interacts with the rest of the lighting and other effects, and works with both Deferred and Forward rendering.
Scalability: the asset offers three different AO modes, ranging from extremely fast SSAO to highly accurate RTAO, each with its own strength. Choose the one that best suits your performance target or hardware requirements. HTrace AO exposes many parameters for fine-tuning each mode through a clear, user-friendly UI.
Cutting-Edge Screen Tracing: not just a standard GTAO — we carefully gathered all meaningful improvements and optimizations of the technique that emerged over the years since it was first released. It encompasses both big innovations like Visibility Bitmasks as well as a bunch of smaller enhancements to deliver the highest quality screen-space AO currently possible.
Real-Time Ray-Tracing: RTAO mode is packed with all the tools we could come up with to make Ray-Traced AO a practical choice: fast Inline Ray-Tracing, RTAS culling and debugging, Screen-Space Pretracing to cover any mismatch with the rasterized scene, Contact Occlusion for an additional layer of detail, and many more. This mode is built to provide the highest accuracy, without sacrificing performance and usability.
Advanced Denoising: high-end denoising pipeline tailored to each AO mode and built upon our extensive experience and research in this area. Includes 2.5D motion vectors, tracking of moving occlusion, sharp reprojection, anisotropic spatial filtering and other state-of-the-art denoising techniques. Comes with configurable temporal and spatial stages helping you find the right balance of noise reduction and temporal responsiveness for your project.
Resolution Scaling: HTrace AO offers Full, Half and Quarter resolution modes, accompanied by a sharp and optimized upscaler. Designed to reduce the overall effect cost by a factor of 2 or even 4, making them a useful tool to balance quality and performance. RTAO also features a special Adaptive resolution mode: conceptually similar to VRS, it renders areas of the screen with high geometric complexity at full rate and reduces resolution for uniform pixels, automatically adapting to the content.
Extensive Rendering Control: you can exclude objects from casting and/or receiving AO via render layer masks, choose the source of the normals (either from a native buffer or reconstructing them from depth on demand), decide at which point in the pipeline to render AO by selecting an injection point, or even output the result to ShaderGraph for custom material effects. The asset also provides convenient debugging overlays, so you can visually inspect the state of all buffers used by HTrace AO.
Requirements and Limitations
RTAO mode requires ray-tracing compatible API (e.g. DX12) and hardware. For more information, please, refer to this page. This is relevant for all rendering pipelines.
RTAO in URP as well the Inline Ray Tracing RTAO mode in HDRP utilize Inline Ray Tracing and require Unity 2023.2 as the minimum version.
Orthographic Camera is untested and not guaranteed to work correctly.
MSAA is untested and not guaranteed to work correctly.
Unity LTS releases are recommended; bug fixes for non-LTS versions are not guaranteed.
Compatibility
Currently tested APIs are: DX11 and DX12
Currently tested HDRP / URP versions are: 14 and above.
Currently tested Unity versions are: from 2022.2 to 6000.3.
Last updated