Awesome
HackLights
Simple framebuffer based lighting engine for libGDX.
Example
See: Sample Code
Sample Light Images:
Installation
- Open or create
gradle.properties
in the root folder of your project, add the following line:
hackLightsVersion=VERSION
Check 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"
}
}
Html/Gwt project
- Gradle dependency:
implementation "com.github.aliasifk:HackLights:$hackLightsVersion:sources"
- In your application's
.gwt.xml
file add (NormallyGdxDefinition.gwt.xml
):
<inherits name="com.aliasifkhan.hackLights"/>
How to test
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.)