ShaderUtil
How to create
You must input a String of the Fragment shader
Functions
init
Initializes the shader
unload
Unloads the shader
setUniformf
Sets specified uniform to the specified arguments
Name | Type | Description |
---|---|---|
name | String | Name of the uniform |
args | Number | These can be up to 4 arguments of non integer numbers |
setUniformi
Name | Type | Description |
---|---|---|
name | String | Name of the uniform |
args | Number | These can be up to 2 integer arguments |
drawQuads
You can draw over the whole screen or in a specified position and size
Optional
Name | Type | Description |
---|---|---|
x | Number | X position of the quads |
y | Number | Y position of the quads |
width | Number | Width of the quads |
height | Number | Height of the quads |
Last updated