You copied the Doc URL to your clipboard.

4.2.3. New ESSL File

The new ESSL File wizard (accessed from File → New → ESSL File) creates a new generic shader file that can be included alongside vertex and fragment shaders in a shader effect. ESSL files are useful for creating #define values for use in vertex and fragment shaders.

When using additional ESSL files, you must place them before the vertex and fragment shaders in the shader effect configuration, or the values created in the ESSL file might not be visible in the other files. The compiler concatenates each of these files together, including the available vertex and fragment shaders, before compiling the source.

Was this page helpful? Yes No