Tutorial 34
GLFX, a library OpenGL effects
Original: http://ogldev.atspace.co.uk/www/tutorial34/tutorial34.html
CSDN full version column: https://blog.csdn.net/cordova/article/category/9266966
Introduction to the Theory
This tutorial does not continue being the first to explore the characteristics of OpenGL and 3D technology, and introduce GLFX, an OpenGL library of special effects. GLFX an effect is a text file, which contains a variety of shader and functions that make it easy to integrate applications into the program. This overcomes glShaderSource () limit, you do not need to define the text for each individual shader stages. Otherwise, we do not want to use a text file for each shader (or different buffer). All shader into the more convenient to share the same file structure shader custom. In addition, GLFX provides a simple-to-use API interfaces to translate the documents into effect GLSL programs, hide some of the complexities of the underlying OpenGL functions.