Class Shader
Represents a WebGL shader.
Defined in: benchgl.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
Shader(type, source)
Creates a new Shader.
|
| Field Attributes | Field Name and Description |
|---|---|
| <static> |
Shader.Fragment
Static container for the default fragment shaders.
|
| <static> |
Shader.Vertex
Static container for the default vertex shaders.
|
| Method Attributes | Method Name and Description |
|---|---|
|
destroy()
Destroys this Shader.
|
Class Detail
Shader(type, source)
Creates a new Shader.
- Parameters:
- {Number} type
- The WebGL type of this shader.
- {String} source
- The source string for the shader.
Field Detail
<static>
Shader.Fragment
Static container for the default fragment shaders.
<static>
Shader.Vertex
Static container for the default vertex shaders.
Method Detail
destroy()
Destroys this Shader.