From 7dfe09b6f186fb423cac4146faf54ec4903bc248 Mon Sep 17 00:00:00 2001 From: Sebastien Benard Date: Tue, 26 Mar 2024 16:49:55 +0100 Subject: [PATCH] Added mulRGB --- src/dn/heaps/HParticle.hx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/dn/heaps/HParticle.hx b/src/dn/heaps/HParticle.hx index 2e17075d..24f17ecb 100644 --- a/src/dn/heaps/HParticle.hx +++ b/src/dn/heaps/HParticle.hx @@ -417,6 +417,12 @@ class HParticle extends BatchElement { this.t.switchTexture(tile); } + public inline function mulRGB(v:Float) { + r*=v; + g*=v; + b*=v; + } + public inline function isSet0() return !Math.isNaN(data0); public inline function isSet1() return !Math.isNaN(data1); public inline function isSet2() return !Math.isNaN(data2);