Sets the program this shader uses as being the active shader in the WebGL Renderer.
This method is called every time the parent pipeline is made the current active pipeline.
name | type | arguments | Default | description |
---|---|---|---|---|
setAttributes | boolean | <optional> | false |
Should the vertex attribute pointers be set? |
flush | boolean | <optional> | false |
Flush the pipeline before binding this shader? |
This WebGLShader instance.