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

https://github.com/matusollah/kagei

CLI tool for testing Kage shaders
https://github.com/matusollah/kagei

cli cli-app cli-tool ebiten ebitengine glsl go golang kage shader shaders

Last synced: 3 months ago
JSON representation

CLI tool for testing Kage shaders

Awesome Lists containing this project

README

          

# kagei

[![Go Report Card](https://goreportcard.com/badge/github.com/MatusOllah/kagei)](https://goreportcard.com/report/github.com/MatusOllah/kagei)

**kagei** (Kage Interpreter) is a CLI tool for testing [Kage shaders](https://ebitengine.org/en/documents/shader.html).

## Building & Installing from source

1. Install Go

2. Install a C compiler (only on macOS, Linux and FreeBSD)

3. Run: `go install github.com/MatusOllah/kagei@latest`

## Usage

To test a Kage shader run:

```shell
kagei path/to/shader.kage
```

### Useful flags

- `-v` - prints verbose output
- `--version` - print version
- `-w` - screen width
- `-g` - screen height
- `--fps-counter` - FPS counter
- `--tps-counter` - TPS counter
- `--show-uniforms` - show uniforms
- `--vsync` - VSync
- `-I` - source image (for example `-I0:image.png`)
- `--uniform-bool` - uniform bool variable (for example `--uniform-bool Foo:true`)
- `--uniform-int` - uniform int variable (for example `--uniform-int Foo:1`)
- `--uniform-float` - uniform float variable (for example `--uniform-float Foo:0.5`)
- `--uniform-vec` - uniform vecN variable (for example `--uniform-vec Foo:[1.1; 2.2; 3.3]`)
- `--uniform-ivec` - uniform ivecN variable (for example `--uniform-vec Foo:[1; 2; 3]`)
- `--uniform-json` - uniforms via JSON
- `--uniform-json-file` - uniforms via a JSON file
- `--resize-images` - resize source images
- `--export-image` - export rendered image and exit (aka headless mode)

## License

MIT