Checks if the source data for this texture has changed (if it's easy to do so) and reuploads the texture if necessary. If it's not possible or to expensive to do a calculation to determine wheter or not the data has occurred, this method simply re-uploads the texture.
Examples
Syntax
update()
Parameters
Notice any errors or typos? Please let us know. Please feel free to edit src/webgl/p5.Texture.js and open a pull request!
Related References
copyToContext
Copies the shader from one drawing context to another.
inspectHooks
Logs the hooks available in this shader, and their current implementation.
modify
Returns a new shader, based on the original, but with custom snippets of shader code replacing default behaviour.
setUniform
Sets the shader’s uniform (global) variables.