Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/aliasifk/HackLights

Simple framebuffer based lighting engine for libGDX.
https://github.com/aliasifk/HackLights

Last synced: about 2 months ago
JSON representation

Simple framebuffer based lighting engine for libGDX.

Awesome Lists containing this project

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.)