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

11 lines
No EOL
264 B
GLSL

#ifndef FNC_CLAMPNOV
#define FNC_CLAMPNOV
#ifndef MIN_N_DOT_V
#define MIN_N_DOT_V 1e-4
#endif
// Neubelt and Pettineo 2013, "Crafting a Next-gen Material Pipeline for The Order: 1886"
float clampNoV(const in float NoV) {
return max(NoV, MIN_N_DOT_V);
}
#endif