Load
This function loads and returns a shader from a shader (*.shader) file. The shader will be compiled and linked if it is loaded.
Syntax
- Shader Load(string path, number flags=0, string prefix="")
Parameters
- path: the file to load.
- flags: asset load parameters.
- prefix: optional code that will be inserted into the shader source following the version declaration.
Returns
Returns the loaded shader. If the shader cannot be loaded, NULL is returned.