mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
This patch improves the multi-scatter approximations for isotropic GGX models to pass the furnace tests. The resolution of the look up tables is increased as well as the mu (cosine(theta)) parametrization is optimized to increase resolution at grazing angles. Pull Request: https://projects.blender.org/blender/blender/pulls/159635
25 lines
621 B
C
25 lines
621 B
C
/* SPDX-FileCopyrightText: 2026 Blender Foundation
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0 */
|
|
|
|
#pragma once
|
|
|
|
/* Constant defines for the resolutions of the albedo look up tables. */
|
|
|
|
#define GGX_E_RES_ROUGH 32
|
|
#define GGX_E_RES_MU 32
|
|
|
|
#define GGX_GLASS_E_RES_ROUGH 32
|
|
#define GGX_GLASS_E_RES_MU 32
|
|
#define GGX_GLASS_E_RES_IOR 32
|
|
|
|
#define GGX_GEN_SCHLICK_S_RES_ROUGH 32
|
|
#define GGX_GEN_SCHLICK_S_RES_MU 32
|
|
#define GGX_GEN_SCHLICK_S_RES_IOR 32
|
|
|
|
#define GGX_GEN_SCHLICK_IOR_S_RES_ROUGH 32
|
|
#define GGX_GEN_SCHLICK_IOR_S_RES_MU 32
|
|
#define GGX_GEN_SCHLICK_IOR_S_RES_IOR 32
|
|
|
|
#define SHEEN_RES_ROUGH 32
|
|
#define SHEEN_RES_MU 32
|