blender/intern/cycles/kernel/constants.h
Sebastian 88b7cc8a52 Fix #158426: Improve energy conservation for multi-scatter glass BSDF
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
2026-08-27 09:42:40 +02:00

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