Allow heat region to produce light (#6879)

* Allow heat region to produce light

* Method overload for backwards compatability
This commit is contained in:
MEEPofFaith
2022-11-06 11:28:59 -08:00
committed by GitHub
parent 83be0116c6
commit 810a905af3
3 changed files with 21 additions and 4 deletions

View File

@@ -241,8 +241,12 @@ public class Drawf{
}
public static void light(float x, float y, TextureRegion region, Color color, float opacity){
light(x, y, region, 0f, color, opacity);
}
public static void light(float x, float y, TextureRegion region, float rotation, Color color, float opacity){
if(renderer == null) return;
renderer.lights.add(x, y, region, color, opacity);
renderer.lights.add(x, y, region, rotation, color, opacity);
}
public static void light(float x, float y, float x2, float y2){