refactor: no mask
This commit is contained in:
parent
3d4d29625d
commit
14c15bbf4a
|
@ -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}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user