Skip to content

A simple tool to write GLSL shaders locally using your favorite IDE of choice

License

Notifications You must be signed in to change notification settings

alexlnkp/CShaderToy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CShaderToy

It's that time of the year again, fellas!

infamous-triangle

Time to learn new stuff, and not just something that is "kinda" cool, but rather something that is EXTREMELY cool!

For those who thought that programming and art could NOT be combined together, ShaderToy came in to prove You wrong!

Even though ShaderToy literally has "Toy" in its name, reality is that GLSL shaders are not limited to just being a fun thing to play around with!

This is when the idea to making this project came to my mind - ShaderToy, but local and on C

GLSL shaders are widely-used by MOST game engines, including some of fan favorites, Godot and GameMaker; in other words - learning shaders can come in really handy!

Getting started

  1. Install glfw3 and glew packages using your package manager, or simply build and install them from source.
  2. To build, do either one of these:
  • Use ./autobuild shell script for simple building of the project. Zero bloat and build systems, just pure GCC
  • Use GCC itself, don't forget to provide needed flags for libraries that we're using here!
  1. ???
  2. Profit!

Since GLSL shaders can compile at run-time, You don't even have to recompile the main C source file every time you make a small change to the shader! Just click R on your keyboard and all of the shaders will automatically be re-compiled for You! This also means that if there's an error in the shader's code, it will be printed out to you verbosely and You will be able to figure out what went wrong! All of that - on-the-go, no time wasted waiting for the whole program to compile, link, or even restart!

Here's a small demonstration video

demo

Examples

For example shaders, please take a look into EXAMPLES

What are you waiting for? Go ahead and make something cool!

About

A simple tool to write GLSL shaders locally using your favorite IDE of choice

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published