-
Notifications
You must be signed in to change notification settings - Fork 40
Working in Ebin
The GLSL Shaders mod is built off of OpenGL 2.1, with a few newer OpenGL features such as mipmpaps. This means Ebin is basically a bunch of vertex and fragment shaders.
Ebin uses the compatibility mode of GLSL version 4.1, which just allows us to use some newer GLSL built-in functions. The Optifine version of the GLSL mod added support for the #include "preprocessor", which is a direct text paste-from-file, which runs before of any actual shader preprocessors or compilation.
If you run into unfamiliar funcionality, it's probably one of the following:
Utilities are commonly used functions or variables that are defined by the shaderpack. Think of them like our own built-ins. Utilities are defined in the primary utility #include, as well as the utility directory, and are dependant on the settings #include.