Add shader and color support for SustainTrail

The drawTriangles function in SustainTrail omits the colorTransform and shader arguments, which makes changing those properties do nothing
This commit is contained in:
BarrierFalki 2024-05-17 15:07:06 -05:00 committed by GitHub
parent 7490b7eab7
commit 01b5d527ac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -292,7 +292,7 @@ class SustainTrail extends FlxSprite
// if (!isOnScreen(camera)) continue; // TODO: Update this code to make it work properly.
getScreenPosition(_point, camera).subtractPoint(offset);
camera.drawTriangles(processedGraphic, vertices, indices, uvtData, null, _point, blend, true, antialiasing);
camera.drawTriangles(processedGraphic, vertices, indices, uvtData, null, _point, blend, true, antialiasing, colorTransform, shader);
}
#if FLX_DEBUG