cyrillajarge / specular-antialiasing

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

License:BSD 2-Clause "Simplified" License


Languages

Language:C++ 53.5%Language:C 25.9%Language:Lua 5.5%Language:D 5.0%Language:Objective-C++ 3.6%Language:C# 3.6%Language:Shell 1.0%Language:Makefile 0.6%Language:Objective-C 0.6%Language:TeX 0.3%Language:SuperCollider 0.1%Language:Scala 0.1%