fix: use alphafilter on grid
This commit is contained in:
parent
feb82f2b17
commit
dcf4cea0c4
2 changed files with 2 additions and 4 deletions
|
|
@ -299,8 +299,6 @@ function Canvas() {
|
|||
}, [tool, holdingAlt, scale, mouseCoords, blocks, setSelectedBlock, zoom]);
|
||||
|
||||
const onKeyDown = (e: KeyboardEvent) => {
|
||||
console.log(e.key);
|
||||
|
||||
switch (e.key) {
|
||||
case " ": // Space
|
||||
setDragging(true);
|
||||
|
|
@ -426,7 +424,7 @@ function Canvas() {
|
|||
</Container>
|
||||
|
||||
{settings.grid && (
|
||||
<Container>
|
||||
<Container filters={[new PIXI.AlphaFilter(0.1)]}>
|
||||
<Grid stageSize={stageSize} coords={coords} scale={scale} isDark={isDark} />
|
||||
</Container>
|
||||
)}
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ function Grid({ stageSize, coords, scale, isDark }: Props) {
|
|||
<Graphics
|
||||
draw={(g) => {
|
||||
g.clear();
|
||||
g.lineStyle(1, isDark ? 0xffffff : 0x000000, 0.1);
|
||||
g.lineStyle(1, isDark ? 0xffffff : 0x000000);
|
||||
|
||||
const tileSize = 16 * scale;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue