Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aliasifk/HackLights
Simple framebuffer based lighting engine for libGDX.
https://github.com/aliasifk/HackLights
Last synced: 4 months ago
JSON representation
Simple framebuffer based lighting engine for libGDX.
- Host: GitHub
- URL: https://github.com/aliasifk/HackLights
- Owner: aliasifk
- License: apache-2.0
- Created: 2022-03-05T12:37:54.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-08-31T18:50:15.000Z (over 2 years ago)
- Last Synced: 2024-08-02T07:09:23.016Z (7 months ago)
- Language: Java
- Homepage: https://aliasifk.github.io/HackLights/
- Size: 889 KB
- Stars: 26
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-libgdx - HackLights - Lightweight framebuffer based lighting engine for libGDX. (Resources / Visual Effects)
README
# HackLights
Simple framebuffer based lighting engine for libGDX.
[](https://github.com/aliasifk/HackLights/blob/master/LICENSE)
[](https://jitpack.io/#aliasifk/HackLights)
# Example
See:
[Sample Code](https://github.com/aliasifk/HackLights/blob/master/src/test/java/com/aliasifkhan/hackLights/lwjgl/tests/BasicTest.java)Sample Light Images:
# Installation
1. Open or create `gradle.properties` in the root folder of your project, add the following line:
```properties
hackLightsVersion=VERSION
```Check [Jitpack](https://jitpack.io/#aliasifk/HackLights/) for the latest version and replace `VERSION` with that.
2. Add the jitpack repo to your build file.
```groovy
allprojects {
repositories {
// ...
maven { url 'https://jitpack.io' }
}
}
```3. Add that to your core modules dependencies inside your root `build.gradle`
```groovy
project(":core") {
// ...dependencies {
// ...
implementation "com.github.aliasifk:HackLights:$hackLightsVersion"
}
}
```## Html/Gwt project
1. Gradle dependency:
```groovy
implementation "com.github.aliasifk:HackLights:$hackLightsVersion:sources"
```2. In your application's `.gwt.xml` file add (Normally `GdxDefinition.gwt.xml`):
```xml
```
## 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.)