ref: 4205aeb1917d86d8de38c6d1b15b4ac245c0bba9
parent: ee357201e019605091a5f9c8c05aca061bd8fe61
author: rodri <rgl@antares-labs.eu>
date: Thu Apr 24 18:33:25 EDT 2025
procgen: fix the stepping i forgot to update it when i moved the uniforms to the Shadertab.
--- a/procgen.c
+++ b/procgen.c
@@ -148,6 +148,7 @@
Memimage *out;
Point dim;
int skip;
+ double time;
dim = Pt(800,400);
skip = 0;
@@ -191,7 +192,11 @@
mdl->addprim(mdl, quad[1]);
scn->addent(scn, ent);
- do shootcamera(cam, &shaders); while(skip--);
+ do{
+ time = nanosec();
+ setuniform(&shaders, "time", VANumber, &time);
+ shootcamera(cam, &shaders);
+ }while(skip--);
cam->view->memdraw(cam->view, out, nil);
writememimage(1, out);