11 lines
No EOL
264 B
GLSL
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 |