diff options
author | pommicket <pommicket@gmail.com> | 2022-12-15 20:22:31 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2022-12-15 20:22:31 -0500 |
commit | d7f810524a30843417253f80e454f1d9173aaeb3 (patch) | |
tree | c50b51b813039c1f393656a678a00cf2caba9d29 /src/main.rs | |
parent | 35cbbb40298389efcd2fe87a9c6458d49c1c567e (diff) |
more functions
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index 2c42e97..cf2317d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -18,9 +18,12 @@ ----- cool seeds: -commit ae29a61c9917da5ad9fbb7a24151bff506669ffb +commit ae29a61c9917da5ad9fbb7a24151bff506669ffb "cool stuff" 18413841503509874975 **17878446840930313726 +commit 35cbbb40298389efcd2fe87a9c6458d49c1c567e "add torus, box frame" +2876923889725946210 +*12145962426879404199 */ extern crate nalgebra; @@ -147,7 +150,7 @@ vec3 get_color(vec3 p) { } else { // in theory we should clamp this but it actually looks better if we don't // (it makes the object glow) - return get_color_(p); + return mix(get_color_(p), vec3(1.0), 0.2); } } |