https://github.com/alexlnkp/cshadertoy
A simple tool to write GLSL shaders locally using your favorite IDE of choice
https://github.com/alexlnkp/cshadertoy
c glsl shaders shadertoy
Last synced: about 2 months ago
JSON representation
A simple tool to write GLSL shaders locally using your favorite IDE of choice
- Host: GitHub
- URL: https://github.com/alexlnkp/cshadertoy
- Owner: alexlnkp
- License: other
- Created: 2024-06-07T15:44:46.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-08T04:42:10.000Z (10 months ago)
- Last Synced: 2024-12-08T05:22:29.607Z (10 months ago)
- Topics: c, glsl, shaders, shadertoy
- Language: C
- Homepage:
- Size: 34.2 KB
- Stars: 8
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CShaderToy
### It's that time of the year again, fellas!
![]()
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!
3. ???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
[](https://youtu.be/j519qeBmu3Y "CShaderToy demo")
## Examples
For example shaders, please take a look into [EXAMPLES](EXAMPLES.md)## Go ahead and make something cool!