Spaces:
Sleeping
Sleeping
Update app/core/shadowGenerator.js
Browse files
app/core/shadowGenerator.js
CHANGED
|
@@ -217,7 +217,7 @@ function drawCastShadow(ctx, img, w, h, blur, opacity, baseX, baseY, lightX, lig
|
|
| 217 |
ctx.globalAlpha = opacity;
|
| 218 |
const drawPosX = -w / 2 - pad / 2;
|
| 219 |
const drawPosY = -h - pad / 2 + overlap;
|
| 220 |
-
ctx.drawImage(shadowCanvas, drawPosX, drawPosY
|
| 221 |
|
| 222 |
ctx.restore();
|
| 223 |
}
|
|
|
|
| 217 |
ctx.globalAlpha = opacity;
|
| 218 |
const drawPosX = -w / 2 - pad / 2;
|
| 219 |
const drawPosY = -h - pad / 2 + overlap;
|
| 220 |
+
ctx.drawImage(shadowCanvas, drawPosX, drawPosY-(30), shadowW, shadowH);
|
| 221 |
|
| 222 |
ctx.restore();
|
| 223 |
}
|