SetSource
This function sets the shader source code. It can be used to create and test shaders dynamically.
Syntax
- void SetSource(string source, number sourceid)
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.