kagei

command module
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2024 License: MIT Imports: 17 Imported by: 0

README

kagei

Go Report Card

kagei (Kage Interpreter) is a CLI tool for testing Kage shaders.

Building & Installing

  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:

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)

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL