refactor: no mask

This commit is contained in:
cha0s 2024-07-11 03:08:39 -05:00
parent 3d4d29625d
commit 14c15bbf4a

View File

@ -15,7 +15,7 @@ const WaterTile = forwardRef(function WaterTile({height, width}, ref) {
return <Graphics alpha={0} draw={draw} ref={ref} /> return <Graphics alpha={0} draw={draw} ref={ref} />
}); });
export default function Water({mask, tileLayer, water}) { export default function Water({tileLayer, water}) {
const [mounted, setMounted] = useState(false); const [mounted, setMounted] = useState(false);
useEffect(() => { useEffect(() => {
setMounted(true); setMounted(true);
@ -39,7 +39,7 @@ export default function Water({mask, tileLayer, water}) {
} }
} }
return ( return (
<Container mask={mask}> <Container>
<WaterTile <WaterTile
height={tileLayer.tileSize.y} height={tileLayer.tileSize.y}
ref={waterTile} ref={waterTile}