Auto-Shadow Opacity

Is there a way to change it the auto-shadow opacity?
Tilemap.prototype._drawShadow = function(bitmap, shadowBits, dx, dy) { if (shadowBits & 0x0f) { var w1 = this._tileWidth / 2; var h1 = this._tileHeight / 2; var color = 'rgba(0,0,0,0.5)'; for (var i = 0; i < 4; i++) { if (shadowBits & (1 << i)) { var dx1 = dx + (i % 2) * w1; var dy1 = dy + Math.floor(i / 2) * h1; bitmap.fillRect(dx1, dy1, w1, h1, color); } } }};Should do it. You're looking for the 0.5 in var color, 5 lines down.
Very useful info. Thank you very much.
Tilemap.prototype._drawShadow = function(bitmap, shadowBits, dx, dy) { if (shadowBits & 0x0f) { var w1 = this._tileWidth / 2; var h1 = this._tileHeight / 2; var color = 'rgba(0,0,0,0.5)'; for (var i = 0; i < 4; i++) { if (shadowBits & (1 << i)) { var dx1 = dx + (i % 2) * w1; var dy1 = dy + Math.floor(i / 2) * h1; bitmap.fillRect(dx1, dy1, w1, h1, color); } } }};Should do it. You're looking for the 0.5 in var color, 5 lines down.
Thank you!!!
With the latest update 1.3 this plugin doesn't work anymore :/
With the latest update 1.3 this plugin doesn't work anymore :/



If you use WebGL Mode, You will have to modify a shadowColor code in _createLayers function of ShaderTilemap class.

Code:
        this.lowerLayer.shadowColor = new Float32Array([0.0, 0.0, 0.0, 0.5]);

Original thread: https://forums.rpgmakerweb.com/threads/auto-shadow-opacity.51190/