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
- static Shader* Load(const std::string& path, int flags=0, const std::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.