12 lines
No EOL
267 B
HLSL
12 lines
No EOL
267 B
HLSL
|
|
#include "../../math/saturateMediump.hlsl"
|
|
|
|
#ifndef FNC_KELEMEN
|
|
#define FNC_KELEMEN
|
|
|
|
// Kelemen 2001, "A Microfacet Based Coupled Specular-Matte BRDF Model with Importance Sampling"
|
|
float kelemen(float LoH) {
|
|
return saturateMediump(0.25 / (LoH * LoH));
|
|
}
|
|
|
|
#endif |