mirror of
https://github.com/processing/processing4.git
synced 2026-02-03 05:39:18 +01:00
18 lines
287 B
Plaintext
18 lines
287 B
Plaintext
PShader nebula;
|
|
|
|
void setup() {
|
|
size(320, 240, P3D);
|
|
noStroke();
|
|
|
|
nebula = loadShader("nebula.glsl");
|
|
nebula.set("resolution", float(width), float(height));
|
|
}
|
|
|
|
void draw() {
|
|
nebula.set("time", millis() / 500.0);
|
|
shader(nebula);
|
|
fill(0);
|
|
rect(0, 0, width, height);
|
|
}
|
|
|