Glsl_shader_load - hpgDesigns/hpgdesigns-dev.io GitHub Wiki
Notation
Description
Loads the source code into a given shader from an external file.
Parameters
- id: index of the shader to load source code for
- fname: file path plus name and extension of the file to load the code from
Return Values
type Returns:
Example Call
// demonstrates loading the GLSL source code into a shader from a file
shader_load(mysh, working_directory + "myvertexshader.glsl");
NOTOC