summaryrefslogtreecommitdiff
path: root/readme.md
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2024-09-19 21:21:26 +0000
committerrodri <rgl@antares-labs.eu>2024-09-19 21:21:26 +0000
commitbfd97dce0cd0b532b0a6065fd1cf891169ebd204 (patch)
treee1ff97f74c77bb7c0ffcc320bf7470aa0e5f16cb /readme.md
parent97bc549d4b8bf638946ac4ff3b066941bca9a03b (diff)
downloadsemblance-bfd97dce0cd0b532b0a6065fd1cf891169ebd204.tar.gz
semblance-bfd97dce0cd0b532b0a6065fd1cf891169ebd204.tar.bz2
semblance-bfd97dce0cd0b532b0a6065fd1cf891169ebd204.zip
fixes and advances.front
Diffstat (limited to 'readme.md')
-rw-r--r--readme.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/readme.md b/readme.md
index 1d133a7..4c1f9a9 100644
--- a/readme.md
+++ b/readme.md
@@ -25,9 +25,9 @@ It's largely influenced by the [RSL][3] and [GLSL][4] languages.
Point3 a, b;
double s;
- b = b * a; /* b = modulatept3(a, b); */
+ b = b * a; /* b = modulatept3(b, a); */
b = b * s; /* b = mulpt3(b, s); */
- b = b * m; /* xform3(b, m); */
+ b = b * m; /* b = xform3(b, m); */
b = b × a; /* b = crossvec3(b, a); */
b = b · a; /* b = dotvec3(b, a); */
m = m * n; /* mulm3(m, n); */
@@ -72,9 +72,9 @@ It's largely influenced by the [RSL][3] and [GLSL][4] languages.
- fragment
| in shader | in libgraphics |
+--------------------------------+
- position → sp->v.p
- color → sp->v.c
- <attr> → sp->v.attrs["<attr>"]
+ position → sp->v->p
+ color → sp->v->c
+ <attr> → sp->v->attrs["<attr>"]
- swizzles
Point3 p;
Color c;