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: 15 days 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 (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-08-31T18:50:15.000Z (about 2 years ago)
- Last Synced: 2024-08-02T07:09:23.016Z (4 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.
[![License](https://img.shields.io/github/license/aliasifk/HackLights)](https://github.com/aliasifk/HackLights/blob/master/LICENSE)
[![Jitpack](https://jitpack.io/v/aliasifk/HackLights.svg)](https://jitpack.io/#aliasifk/HackLights)![banner2](https://user-images.githubusercontent.com/55298434/156891579-94c284dd-815c-4404-89fb-a0d3f2e42181.png)
# Example
See:
[Sample Code](https://github.com/aliasifk/HackLights/blob/master/src/test/java/com/aliasifkhan/hackLights/lwjgl/tests/BasicTest.java)Sample Light Images:
![Sample Light Textures](https://user-images.githubusercontent.com/55298434/156891366-d28edc23-1c89-40d9-8ac1-0d0c7b061d72.png)# 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.)