An open API service indexing awesome lists of open source software.

https://github.com/ichlubna/openglinjector

This header-only hpp library can be used to adjust the rendered result of an existing OpenGL code without the need to inspect the code too much.
https://github.com/ichlubna/openglinjector

3d framebuffer gl glsl injection ogl opengl

Last synced: about 2 months ago
JSON representation

This header-only hpp library can be used to adjust the rendered result of an existing OpenGL code without the need to inspect the code too much.

Awesome Lists containing this project

README

          

This class can be simply injected into an existing OpenGL code to apply some post processing effects on the rendered result. Simply include the hehpp file and create an instance of `GLInjection` class. Then init the object somewhere where the scene is initialized so that the `init` function is called only once. Add the call to `render` function right before the swapping of the buffers or other kind of frame buffer presentation mechanism. For example, right before the call of `glfwSwapBuffers` or `SDL_GL_SwapWindow`. Edit the fragment shader to adjust the effects. An example with LearnOpenGL tutorial is placing the `init` [here](https://github.com/JoeyDeVries/LearnOpenGL/blob/a545a703f95893258d16dbe32f5ccbb6400fd213/src/3.model_loading/1.model_loading/model_loading.cpp#L90) and `render` [here](https://github.com/JoeyDeVries/LearnOpenGL/blob/a545a703f95893258d16dbe32f5ccbb6400fd213/src/3.model_loading/1.model_loading/model_loading.cpp#L128).