Skip to content

GShader is a small utility program for hobbyists that love to use maths to create art using GLSL shading language.

License

Notifications You must be signed in to change notification settings

guilmont/GShader

Repository files navigation

GShader

gshader_demo

GShader is a small utility program for hobbyists that love to use maths to create art using GLSL shading language.

Table of Contents
  1. Examples
  2. Getting Started
  3. License

Examples

A good way to learn how to write shaders is following these two youtube channels, from which I much learned:

A few examples are included with this project. Simply open the configuration json file to pre-load all used colors, uniforms and camera properties. For simpler shaders, just open the glsl file directly.

example_images


Getting Started

Source code

git clone --recurse https://github.com/guilmont/GShader.git

Binary

GShader is a single executable file. Under bin you can find an executable for Windows and Linux, but they might not be the most up-to-date version or compiled in Release mode.

Installation with CMake

This project uses CMake as its building system. Hence, the traditional way to install it is to open a terminal in cloned location and do the following

mkdir build
cd build

(Windows) -> cmake .. -DCMAKE_INSTALL_PREFIX="path_to_desired_location"
(Windows) -> cmake --build . --config Release --target install -j8

(Linux) -> cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="path_to_desired_location"
(Linux) -> make install -j8

VS 2022 :: VSCode + Ninja

This project presents a CMakePresets which allows you to configure GShader and build it using your favorite tool. Load the cloned folder with either, choose you build configuration and press play.


License

Distributed under the MIT license. See License.txt for more information.



Copyright 2022 Guilherme MONTEIRO OLIVEIRA

About

GShader is a small utility program for hobbyists that love to use maths to create art using GLSL shading language.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published