From 83ac8628c490eda4fa5237b7a4256bc670dc0682 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Foucault?= Date: Sat, 13 Feb 2021 18:50:09 +0100 Subject: EEVEE: Update LUT GGX generation shader This modifies the principled BSDF and the Glass BSDF which now have better fit to multiscatter GGX. Code to generate the LUT have been updated and can run at runtime. The refraction LUT has been changed to have the critical angle always centered around one pixel so that interpolation can be mitigated. Offline LUT data will be updated in another commit This simplify the BTDF retreival removing the manual clean cut at low roughness. This maximize the precision of the LUT by scalling the sides by the critical angle. I also touched the ior > 1.0 approximation to be smoother. Also incluse some cleanup of bsdf_sampling.glsl --- source/blender/draw/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/draw/CMakeLists.txt') diff --git a/source/blender/draw/CMakeLists.txt b/source/blender/draw/CMakeLists.txt index 8abd353d36d..dff9e302fdf 100644 --- a/source/blender/draw/CMakeLists.txt +++ b/source/blender/draw/CMakeLists.txt @@ -90,6 +90,7 @@ set(SRC engines/eevee/eevee_lights.c engines/eevee/eevee_lookdev.c engines/eevee/eevee_lut.c + engines/eevee/eevee_lut_gen.c engines/eevee/eevee_materials.c engines/eevee/eevee_mist.c engines/eevee/eevee_motion_blur.c -- cgit v1.2.3