From f894c877238023353f28702a1c23809d62d94848 Mon Sep 17 00:00:00 2001 From: bjorn Date: Sat, 13 Aug 2022 00:26:18 -0700 Subject: [PATCH] Clamp roughness to .05; --- etc/shaders/lovr.glsl | 1 + 1 file changed, 1 insertion(+) diff --git a/etc/shaders/lovr.glsl b/etc/shaders/lovr.glsl index 7f030ebb..ec96d007 100644 --- a/etc/shaders/lovr.glsl +++ b/etc/shaders/lovr.glsl @@ -239,6 +239,7 @@ void initSurface(out Surface surface) { float roughness = Material.roughness; if (useRoughnessTexture) roughness *= getPixel(RoughnessTexture, UV).g; + roughness = max(roughness, .05); surface.roughness2 = roughness * roughness; surface.occlusion = 1.;