-
Notifications
You must be signed in to change notification settings - Fork 3
Program.API
GLSL shader program wrapper.
Name | Type | Argument | Description |
---|---|---|---|
vertexShader |
String |
<optional> |
The vertex shader or mixed vertex/fragment shader string |
fragmentShader |
String |
<optional> |
The fragment shader string |
- Source:
-
The default shader texcoord attribute. (reassignable)
- string
- Source:
-
The default shader vertex color attribute. (reassignable)
- string
- Source:
-
The default shader vertex normal attribute. (reassignable)
- string
- Source:
-
The default shader vertex position attribute. (reassignable)
- string
- Source:
-
The default shader color uniform. (reassignable)
- string
- Source:
-
The default shader modelview matrix uniform. (reassignable)
- string
- Source:
-
The default shader point size uniform. (reassignable)
- string
- Source:
-
The default shader projection matrix uniform. (reassignable)
- string
- Source:
-
The default shader sampler2d uniform. (reassignable)
- string
- Source:
-
Return the currently bound program.
- Source:
- Type
- null | Progam
-
Activate the program.
- Source:
-
Delete the program.
- Source:
-
Get the number of active attributes.
- Source:
- Type
- Number
-
Get the number of active uniforms
- Source:
- Type
- Number
-
Reload the program
Name Type Argument Description vertexShader
String The vertex shader or mixed vertex/fragment shader string
fragmentShader
String <optional>
The fragment shader string
- Source:
-
Deactivate the program.
- Source: