From d94c6b970867e180cb7c45cbc68b304d5e4ee219 Mon Sep 17 00:00:00 2001 From: Basile Lecouturier <50240788+bolex222@users.noreply.github.com> Date: Thu, 2 Jan 2025 15:07:18 +0100 Subject: [PATCH] docs(Mask): mention enabling stencil in the Canvas component --- docs/portals/mask.mdx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/portals/mask.mdx b/docs/portals/mask.mdx index 76b0eb682..60231c9b1 100644 --- a/docs/portals/mask.mdx +++ b/docs/portals/mask.mdx @@ -44,6 +44,14 @@ return ( ``` +You must unable stencil in your `` component to use the mask without `depthWrite` set to `true`. + +```jsx + +{/** Your scene **/} + +``` + You can build compound masks with multiple shapes by re-using an id. You can also use the mask as a normal mesh by providing `colorWrite` and `depthWrite` props. ```jsx