Skip to content

Commit

Permalink
fix(shadow): fix acceptShadow
Browse files Browse the repository at this point in the history
  • Loading branch information
lslzl3000 committed Aug 7, 2024
1 parent a939ce6 commit 4d6a838
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion samples/utils/GUIUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ export class GUIUtil {
});

GUIHelp.add(mat, 'castShadow');

GUIHelp.add(mat, 'acceptShadow');
open && GUIHelp.open();

GUIHelp.endFolder();
Expand Down
1 change: 1 addition & 0 deletions src/assets/shader/materials/program/ShadowMapping_frag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ export let ShadowMapping_frag: string = /*wgsl*/ `
}
visibility /= totalWeight;
}
#endif
return vec4<f32>(visibility, isOutSideArea, varying_shadowUV);
}
Expand Down

0 comments on commit 4d6a838

Please sign in to comment.