Skip to content

Commit

Permalink
Added mulRGB
Browse files Browse the repository at this point in the history
  • Loading branch information
deepnight committed Mar 26, 2024
1 parent e42e1db commit 7dfe09b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/dn/heaps/HParticle.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7dfe09b

Please sign in to comment.