ErikPrantare / ggr2glsl

GIMP gradient to GLSL converter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ggr2glsl

ggr2glsl is a simple utility to convert GIMP gradient files to GLSL functions.

Usage

ggr2glsl reads from standard input and writes to standard output.

To convert a gradient called purples.ggr to a glsl function, with the file name myGradient.glsl, do:

./ggr2glsl < purples.ggr > myGradient.glsl

The file myGradient.glsl now contains, among some other functions, ggr2glsl_color.

This function takes a floating point value and returns a vec4, the color in the gradient.

Download (Windows)

https://github.com/ErikPrantare/ggr2glsl/releases/tag/v0.0.0

Build (Linux)

cmake . -Bbuild
cmake --build build
mv build/ggr2glsl .

Example

Following is an example of a gradient, and it being applied to Mandelscape:

ggr glsl

About

GIMP gradient to GLSL converter

License:GNU Affero General Public License v3.0


Languages

Language:C++ 97.5%Language:CMake 2.5%