fuckingtech/public/assets/glsl/lygia/lighting/common/kelemen.glsl
Elias Rhouzlane bf76c6b086 fix: code
2025-04-06 17:23:52 +02:00

12 lines
No EOL
276 B
GLSL

#include "../../math/saturateMediump.glsl"
#ifndef FNC_KELEMEN
#define FNC_KELEMEN
// Kelemen 2001, "A Microfacet Based Coupled Specular-Matte BRDF Model with Importance Sampling"
float kelemen(const in float LoH) {
return saturateMediump(0.25 / (LoH * LoH));
}
#endif