diff options
author | Kartik Agaram <vc@akkartik.com> | 2021-06-24 21:44:18 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2021-06-24 21:46:45 -0700 |
commit | ec32c11d3bde6772ddd250d3b217e0541409e0ce (patch) | |
tree | b6a6838412dc0b81eec92842753aef415b1e94af /html/linux/raytracing/ray.mu.html | |
parent | 296a5a5f12080384e813df5594339298f6f1fe8e (diff) | |
download | mu-ec32c11d3bde6772ddd250d3b217e0541409e0ce.tar.gz |
.
Switch html rendering to a white background.
Diffstat (limited to 'html/linux/raytracing/ray.mu.html')
-rw-r--r-- | html/linux/raytracing/ray.mu.html | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/html/linux/raytracing/ray.mu.html b/html/linux/raytracing/ray.mu.html index 823b78ca..65e762eb 100644 --- a/html/linux/raytracing/ray.mu.html +++ b/html/linux/raytracing/ray.mu.html @@ -7,17 +7,18 @@ <meta name="plugin-version" content="vim8.1_v1"> <meta name="syntax" content="none"> <meta name="settings" content="number_lines,use_css,pre_wrap,no_foldcolumn,expand_tabs,line_ids,prevent_copy="> -<meta name="colorscheme" content="minimal-dark"> +<meta name="colorscheme" content="minimal-light"> <style type="text/css"> <!-- -pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #a8a8a8; } -body { font-size:12pt; font-family: monospace; color: #000000; background-color: #a8a8a8; } +pre { white-space: pre-wrap; font-family: monospace; color: #000000; background-color: #eeeeee; } +body { font-size:12pt; font-family: monospace; color: #000000; background-color: #eeeeee; } a { color:inherit; } * { font-size:12pt; font-size: 1em; } .PreProc { color: #c000c0; } .Special { color: #ff6060; } .LineNr { } -.Constant { color: #008787; } +.muRegEsi { color: #87d787; } +.muRegEax { color: #875f00; } .Delimiter { color: #c000c0; } .muFunction { color: #af5f00; text-decoration: underline; } .muComment { color: #005faf; } @@ -65,16 +66,16 @@ if ('onhashchange' in window) { <span id="L7" class="LineNr"> 7 </span><span class="muComment"># We immediately normalize the direction vector so we don't have to keep doing</span> <span id="L8" class="LineNr"> 8 </span><span class="muComment"># so.</span> <span id="L9" class="LineNr"> 9 </span><span class="PreProc">fn</span> <span class="muFunction">initialize-ray</span> _self: (addr ray), o: (addr vec3), d: (addr vec3) <span class="Delimiter">{</span> -<span id="L10" class="LineNr">10 </span> <span class="PreProc">var</span> self/<span class="Constant">esi</span>: (addr ray) <span class="Special"><-</span> copy _self -<span id="L11" class="LineNr">11 </span> <span class="PreProc">var</span> dest/<span class="Constant">eax</span>: (addr vec3) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, orig +<span id="L10" class="LineNr">10 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr ray) <span class="Special"><-</span> copy _self +<span id="L11" class="LineNr">11 </span> <span class="PreProc">var</span> dest/<span class="muRegEax">eax</span>: (addr vec3) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, orig <span id="L12" class="LineNr">12 </span> copy-object o, dest <span id="L13" class="LineNr">13 </span> dest <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, dir <span id="L14" class="LineNr">14 </span> vec3-unit d, dest <span id="L15" class="LineNr">15 </span><span class="Delimiter">}</span> <span id="L16" class="LineNr">16 </span> <span id="L17" class="LineNr">17 </span><span class="PreProc">fn</span> <span class="muFunction">ray-at</span> _self: (addr ray), t: float, out: (addr vec3) <span class="Delimiter">{</span> -<span id="L18" class="LineNr">18 </span> <span class="PreProc">var</span> self/<span class="Constant">esi</span>: (addr ray) <span class="Special"><-</span> copy _self -<span id="L19" class="LineNr">19 </span> <span class="PreProc">var</span> src/<span class="Constant">eax</span>: (addr vec3) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, dir +<span id="L18" class="LineNr">18 </span> <span class="PreProc">var</span> self/<span class="muRegEsi">esi</span>: (addr ray) <span class="Special"><-</span> copy _self +<span id="L19" class="LineNr">19 </span> <span class="PreProc">var</span> src/<span class="muRegEax">eax</span>: (addr vec3) <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, dir <span id="L20" class="LineNr">20 </span> copy-object src, out <span id="L21" class="LineNr">21 </span> vec3-scale-up out, t <span id="L22" class="LineNr">22 </span> src <span class="Special"><-</span> <a href='../131table.subx.html#L26'>get</a> self, orig |