diff options
author | Kartik Agaram <vc@akkartik.com> | 2020-10-03 22:55:19 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2020-10-03 22:55:19 -0700 |
commit | 2f5a8496e64c063796ea5daf6381701d7cd873f1 (patch) | |
tree | 8b105eba7e7ebdc28503cb1e6f722eae1954ff36 /apps/raytracing | |
parent | b6cf4f1db3afe407220613ba76685058b0e2aa09 (diff) | |
download | mu-2f5a8496e64c063796ea5daf6381701d7cd873f1.tar.gz |
6940
Diffstat (limited to 'apps/raytracing')
-rw-r--r-- | apps/raytracing/vec.mu | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/apps/raytracing/vec.mu b/apps/raytracing/vec.mu index fc19c0bc..29516fb1 100644 --- a/apps/raytracing/vec.mu +++ b/apps/raytracing/vec.mu @@ -4,35 +4,35 @@ type vec3 { z: float } -fn vec3-negate a: (addr vec3), out: (addr vec3) { +fn vec3-negate _a: (addr vec3), out: (addr vec3) { } -fn vec3-add-to a: (addr vec3), b: (addr vec3) { +fn vec3-add-to _a: (addr vec3), _b: (addr vec3) { } -fn vec3-mul-by a: (addr vec3), b: (addr vec3) { +fn vec3-mul-by _a: (addr vec3), _b: (addr vec3) { } -fn vec3-scale-up a: (addr vec3), n: float { +fn vec3-scale-up _a: (addr vec3), n: float { } -fn vec3-scale-down a: (addr vec3), n: float { +fn vec3-scale-down _a: (addr vec3), n: float { } -fn vec3-length a: (addr vec3) -> result/eax: float { +fn vec3-length _a: (addr vec3) -> result/eax: float { } -fn vec3-length-squared a: (addr vec3) -> result/eax: float { +fn vec3-length-squared _a: (addr vec3) -> result/eax: float { } -fn vec3-dot a: (addr vec3), b: (addr vec3) -> result/eax: float { +fn vec3-dot _a: (addr vec3), _b: (addr vec3) -> result/eax: float { } -fn vec3-cross a: (addr vec3), b: (addr vec3), out: (addr vec3) { +fn vec3-cross _a: (addr vec3), _b: (addr vec3), out: (addr vec3) { } fn vec3-unit in: (addr vec3), out: (addr vec3) { } -fn print-vec3 screen: (addr screen), a: (addr vec3) { +fn print-vec3 screen: (addr screen), _a: (addr vec3) { } |