Simple framebuffer based lighting engine for libGDX.
See: Sample Code
- Open or create
gradle.propertiesin the root folder of your project, add the following line:
hackLightsVersion=VERSIONCheck Jitpack for the latest version and replace VERSION with that.
- Add the jitpack repo to your build file.
allprojects {
repositories {
// ...
maven { url 'https://jitpack.io' }
}
}- Add that to your core modules dependencies inside your root
build.gradle
project(":core") {
// ...
dependencies {
// ...
implementation "com.github.aliasifk:HackLights:$hackLightsVersion"
}
}- Gradle dependency:
implementation "com.github.aliasifk:HackLights:$hackLightsVersion:sources"- In your application's
.gwt.xmlfile add (NormallyGdxDefinition.gwt.xml):
<inherits name="com.aliasifkhan.hackLights"/>Run ./gradlew test to run lwjgl3 tests and examples.
Set environment variable SLEEPY to a millisecond number to sleep between each test. (For example: SLEEPY=3000 would wait 3 seconds after every test.)

