Skip to content

My Utility for learn OpenGl stuff - It can load multiple programs ("multiple fragment shaders with one vertex shader in common") . You can select the current fragment to display and when you edit the fragment source, current or not, the application reload the associated program. For me it is util with https://thebookofshaders.com/ and https://ww…

License

Notifications You must be signed in to change notification settings

musicrizz/MyFragmentsLoader

Repository files navigation

MyFragmentsLoader

My Utility for learn OpenGl stuff with thebookofshaders and shadertoy

The application can load multiple fragment shaders with one vertex shader in common.
You can select the current fragment to display and when you edit the fragment source code, current or not, the application reload the associated program.

For example :
You can start the application like ./MyFragmentsLoader -f example/fragments -r -t example/textures
The application load all fragments in the folder example/fragments and texture images in the folder example/textures and you can select the current fragment to display with + or - ,
then you can edit the fragment source code with an editor of your choise, and when you save the file the application reload the associated program.
You can use this fragment shader as template.
If the compilation is not successiful it will display an ERROR image and the errors will be printed on the console.

PS:
at the moment the errors are printed on the console, but I have to implement a text system for display directly in the ERROR Window.

This is a cpp project with Eclipse.
Required lib :

  • GL
  • GLEW
  • glfw
  • glm

also I used stb_image.h for loading the texture images and easylogging++ for logger.

mandel

About

My Utility for learn OpenGl stuff - It can load multiple programs ("multiple fragment shaders with one vertex shader in common") . You can select the current fragment to display and when you edit the fragment source, current or not, the application reload the associated program. For me it is util with https://thebookofshaders.com/ and https://ww…

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages