mirror of
https://github.com/patriciogonzalezvivo/thebookofshaders
synced 2024-11-09 19:10:24 +00:00
Suggestion for small code fix in Processing example
Maybe it will faster
This commit is contained in:
parent
2c6d339a1e
commit
f6763d2f84
@ -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…
Reference in New Issue
Block a user