diff options
author | rodri <rgl@antares-labs.eu> | 2024-10-02 20:48:34 +0000 |
---|---|---|
committer | rodri <rgl@antares-labs.eu> | 2024-10-02 20:48:34 +0000 |
commit | 0aefb6df51b29b022ec16394ce1a2132e9d41ac1 (patch) | |
tree | a20aae100c5065e54b32e9b2d6fc9387a89bec8e | |
parent | 7fdc25da4dc85bc6902f6ecdabccf55e601146de (diff) | |
download | 3dee-0aefb6df51b29b022ec16394ce1a2132e9d41ac1.tar.gz 3dee-0aefb6df51b29b022ec16394ce1a2132e9d41ac1.tar.bz2 3dee-0aefb6df51b29b022ec16394ce1a2132e9d41ac1.zip |
fixes and improvements.
-rw-r--r-- | procgen.c | 4 | ||||
-rw-r--r-- | vis.c | 6 |
2 files changed, 5 insertions, 5 deletions
@@ -131,8 +131,8 @@ fs(Shaderparams *sp) } Shadertab shaders = { - .vshader = vs, - .fshader = fs + .vs = vs, + .fs = fs }; void @@ -236,9 +236,9 @@ lmb(void) Δorient = mulq(orient, invq(Δorient)); for(e = scene->ents.next; e != &scene->ents; e = e->next){ - e->bx = vcs2world(maincam, Vecquat(mulq(mulq(Δorient, Quatvec(0, world2vcs(maincam, e->bx))), invq(Δorient)))); - e->by = vcs2world(maincam, Vecquat(mulq(mulq(Δorient, Quatvec(0, world2vcs(maincam, e->by))), invq(Δorient)))); - e->bz = vcs2world(maincam, Vecquat(mulq(mulq(Δorient, Quatvec(0, world2vcs(maincam, e->bz))), invq(Δorient)))); + e->bx = vcs2world(maincam, qsandwichpt3(Δorient, world2vcs(maincam, e->bx))); + e->by = vcs2world(maincam, qsandwichpt3(Δorient, world2vcs(maincam, e->by))); + e->bz = vcs2world(maincam, qsandwichpt3(Δorient, world2vcs(maincam, e->bz))); } }else{ /* DBG only */ Framebuf *fb; |