A command line program that renders the output of a GLSL fragment shader as a PNG image. This is a proof of concept for making a program that generates PBR textures using GLSL.
glsl2png [GLSL source file] [PNG output file] [size]
- lodepng
- glad
- GLFW
- KHR
- Place the required libraries in
include
andlib
and putglad.c
andlodepng.c
insrc
- Run
make