From b38ab2e38093b0e1b1b773164c5440cef4fefc6b Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Mon, 27 Nov 2017 00:02:29 +0100 Subject: [PATCH] Update: CC - Before Render - Moorcow (zo950m57cc.js) 33 bytes modified --- zo950m57cc.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/zo950m57cc.js b/zo950m57cc.js index ab6aec4..12e053a 100644 --- a/zo950m57cc.js +++ b/zo950m57cc.js @@ -229,7 +229,7 @@ mesh.burnLife = 1; mesh.explodeLife = 1; mesh.instance.material.color.setRGB(1,1,1); - + mesh.instance.material.opacity = 1; return mesh; } } @@ -780,7 +780,7 @@ ) { var material = mesh.materials[0]; - + if (material.name.indexOf('Trees') === -1) { mesh.burnLife -= data.delta * 3; @@ -951,9 +951,7 @@ enemy.mesh.fireParticleEngine.updateInstance('position'); } - enemy.mesh.materials[0].opacity -= 0.05 * data.delta; - enemy.mesh.materials[0].updateInstance('opacity'); - + enemy.mesh.instance.material.opacity -= 0.5 * data.delta; } result.push(enemy);