diff --git a/samples/utils/GUIUtil.ts b/samples/utils/GUIUtil.ts index 3493d803..a1d54400 100644 --- a/samples/utils/GUIUtil.ts +++ b/samples/utils/GUIUtil.ts @@ -555,7 +555,7 @@ export class GUIUtil { }); GUIHelp.add(mat, 'castShadow'); - + GUIHelp.add(mat, 'acceptShadow'); open && GUIHelp.open(); GUIHelp.endFolder(); diff --git a/src/assets/shader/materials/program/ShadowMapping_frag.ts b/src/assets/shader/materials/program/ShadowMapping_frag.ts index 91f45280..91d9031d 100644 --- a/src/assets/shader/materials/program/ShadowMapping_frag.ts +++ b/src/assets/shader/materials/program/ShadowMapping_frag.ts @@ -142,6 +142,7 @@ export let ShadowMapping_frag: string = /*wgsl*/ ` } visibility /= totalWeight; } + #endif return vec4(visibility, isOutSideArea, varying_shadowUV); }