Suggestion for small code fix in Processing example

Maybe it will faster
pull/207/head
Serabass 7 years ago committed by GitHub
parent 2c6d339a1e
commit f6763d2f84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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);

Loading…
Cancel
Save