Browse Source

remove duplicated line

Alexander Rose 3 years ago
parent
commit
1cbcb5c530
1 changed files with 0 additions and 1 deletions
  1. 0 1
      src/mol-gl/shader/chunks/apply-light-color.glsl.ts

+ 0 - 1
src/mol-gl/shader/chunks/apply-light-color.glsl.ts

@@ -25,7 +25,6 @@ ReflectedLight reflectedLight = ReflectedLight(vec3(0.0), vec3(0.0), vec3(0.0),
 
 PhysicalMaterial physicalMaterial;
 physicalMaterial.diffuseColor = color.rgb * (1.0 - metalness);
-physicalMaterial.roughness = min(max(roughness, 0.0525), 1.0);
 #ifdef enabledFragDepth
     physicalMaterial.roughness = min(max(roughness, 0.0525), 1.0);
 #else