Skip to content

FairplexVR/AgX-Tonemapping-Unity

Repository files navigation

AgX Tonemapping for Unity

Screenshot_7

What is this?

AgX is the new color transform introduced in Blender 4.0, surpassing Filmic and ACES in many aspects. This repository contains a collection of AgX LUTs that are compatible with Unity BIRP and HDRP only. (Sorry URP!)

This Unity pack is inspired by the original AgX by Troy Sobotka and the Blender AgX implementation. The LUTs in the pack are configured to provide visual consistency with Blender's OCIO presets:

  • Base Contrast
  • Medium High Contrast
  • High Contrast
  • Very High Contrast
  • Medium Low Contrast
  • Low Contrast
  • Very Low Contrast
  • Punchy
  • Greyscale

Check out the Blender release notes for more information about AgX.

Achieving a 1:1 View Transform between Blender 4.0 and Unity!

With AgX, you can now achieve a similar look between Blender and Unity:

296376429-7d55092b-93c0-46a9-93dc-2c4eacde757d

The lightmap is baked using Cycles and supplied to a custom shader, resulting in a nearly identical appearance.

Comparison between Tonemappers

Screenshot_5

Installation

If you're not familiar with external LUTs in Unity, follow these steps to set it up. Assuming your project is configured in Linear Color Space with a working Post-Process, here's how to add the external LUTs:

  1. Download the Unitypackage from from the release page and import it your Unity project.
  2. In your global Post-Process Volume Component, add a Color Grading effect by clicking on Add Effect... > Unity > Color Grading.
  3. Change the Mode to External.
  4. In the Lookup Texture field, drag and drop a LUT of your choice.

Enjoy!