Browse Source

check for shadow in PostprocessingPass.isEnabled

Alexander Rose 2 years ago
parent
commit
0b6294f4ec
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/mol-canvas3d/passes/postprocessing.ts

+ 1 - 1
src/mol-canvas3d/passes/postprocessing.ts

@@ -368,7 +368,7 @@ export type PostprocessingProps = PD.Values<typeof PostprocessingParams>
 
 export class PostprocessingPass {
     static isEnabled(props: PostprocessingProps) {
-        return props.occlusion.name === 'on' || props.outline.name === 'on' || props.background.variant.name !== 'off';
+        return props.occlusion.name === 'on' || props.shadow.name === 'on' || props.outline.name === 'on' || props.background.variant.name !== 'off';
     }
 
     static isOutlineEnabled(props: PostprocessingProps) {