SetSource
This function sets the shader source code. It can be used to create and test shaders dynamically.
Syntax
Parameters
- source: the source code to set.
- sourceid: The shader component to compile. This may be Shader::Vertex, Shader::Pixel, Shader::Geometry, Shader::Evaluation, or Shader::Control.