/specular-antialiasing

Implementation of a method for specular anti-aliasing for microfacet based BRDFs with BGFX rendering library.

Primary LanguageC++BSD 2-Clause "Simplified" LicenseBSD-2-Clause

Specular Antialiasing using Kaplanyan et. al method [1] with BGFX rendering library [2]

BGFX Dependencies

How to use

  1. Get bg as well as bimg and put them in the same directory as this repository.
  2. Go to the root of bgfx directory and run the command ..\bx\tools\bin\windows\genie.exe --platform=x64 --with-tools --with-examples --with-windows=10 vs2019 to build all examples for Windows with Visual Studio 2019. Consult the help of genie to see how to build the project if you are on another platform.
  3. The Visual Studio project is then available under the .build directory.

The implementation is done in an example called xx-specular-antialiasing in examples.

Results

Without specular antialiasing:
result-without-specular-antialiasing With specular antialiasing: result-with-specular-antialiasing

References

[1] Kaplanyan, A. S. and Hill, S. and Patney, A. and Lefohn, A. , Filtering Distributions of Normals for Shading Antialiasing, 2016
[2] https://bkaradzic.github.io/bgfx/index.html