Suggestion for small code fix in Processing example

Maybe it will faster
This commit is contained in:
Serabass 2017-12-25 10:13:41 +06:00 committed by GitHub
parent 2c6d339a1e
commit f6763d2f84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -138,10 +138,10 @@ void setup() {
noStroke();
shader = loadShader("shader.frag");
shader.set("u_resolution", float(width), float(height));
}
void draw() {
shader.set("u_resolution", float(width), float(height));
shader.set("u_mouse", float(mouseX), float(mouseY));
shader.set("u_time", millis() / 1000.0);
shader(shader);