diff options
Diffstat (limited to 'pbr.cginc')
| -rw-r--r-- | pbr.cginc | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -14,6 +14,9 @@ struct Pbr { float metallic; }; +#define MIN_PERCEPTUAL_ROUGHNESS 5e-2f +#define MIN_ROUGHNESS 2e-3f + // TODO consider normal filtering like filamented void propagateSmoothness(inout Pbr pbr) { pbr.roughness_perceptual = max(MIN_PERCEPTUAL_ROUGHNESS, 1.0f - pbr.smoothness); |
