Clamp roughness to .05;

This commit is contained in:
bjorn 2022-08-13 00:26:18 -07:00
parent 13f40a05c3
commit f894c87723
1 changed files with 1 additions and 0 deletions

View File

@ -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.;