diff options
Diffstat (limited to 'html/apps/raytracing/3.mu.html')
-rw-r--r-- | html/apps/raytracing/3.mu.html | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/html/apps/raytracing/3.mu.html b/html/apps/raytracing/3.mu.html index 0e6820b4..48dee774 100644 --- a/html/apps/raytracing/3.mu.html +++ b/html/apps/raytracing/3.mu.html @@ -90,7 +90,7 @@ if ('onhashchange' in window) { <span id="L29" class="LineNr"> 29 </span> <span class="PreProc">var</span> two-f/<span class="Constant">xmm2</span>: float <span class="SpecialChar"><-</span> convert two <span id="L30" class="LineNr"> 30 </span> t <span class="SpecialChar"><-</span> divide two-f <span id="L31" class="LineNr"> 31 </span><span class="CommentedCode">#? print-string 0, "t: "</span> -<span id="L32" class="LineNr"> 32 </span><span class="CommentedCode">#? print-float 0, t</span> +<span id="L32" class="LineNr"> 32 </span><span class="CommentedCode">#? print-float-hex 0, t</span> <span id="L33" class="LineNr"> 33 </span><span class="CommentedCode">#? print-string 0, "\n"</span> <span id="L34" class="LineNr"> 34 </span> <span class="muComment"># whitening = (1.0 - t) * white</span> <span id="L35" class="LineNr"> 35 </span> <span class="PreProc">var</span> whitening-storage: rgb @@ -104,9 +104,9 @@ if ('onhashchange' in window) { <span id="L43" class="LineNr"> 43 </span><span class="CommentedCode">#? print-string 0, "\n"</span> <span id="L44" class="LineNr"> 44 </span> <span class="muComment"># out = t * (0.5, 0.7, 1.0)</span> <span id="L45" class="LineNr"> 45 </span> <span class="PreProc">var</span> dest/<span class="Constant">eax</span>: (addr float) <span class="SpecialChar"><-</span> <a href='../../131table.subx.html#L26'>get</a> out, r -<span id="L46" class="LineNr"> 46 </span> <a href='../../409float.mu.html#L3'>fill-in-rational</a> dest, <span class="Constant">5</span>, <span class="Constant">0xa</span> +<span id="L46" class="LineNr"> 46 </span> <a href='../../408float.mu.html#L3'>fill-in-rational</a> dest, <span class="Constant">5</span>, <span class="Constant">0xa</span> <span id="L47" class="LineNr"> 47 </span> dest <span class="SpecialChar"><-</span> <a href='../../131table.subx.html#L26'>get</a> out, g -<span id="L48" class="LineNr"> 48 </span> <a href='../../409float.mu.html#L3'>fill-in-rational</a> dest, <span class="Constant">7</span>, <span class="Constant">0xa</span> +<span id="L48" class="LineNr"> 48 </span> <a href='../../408float.mu.html#L3'>fill-in-rational</a> dest, <span class="Constant">7</span>, <span class="Constant">0xa</span> <span id="L49" class="LineNr"> 49 </span> dest <span class="SpecialChar"><-</span> <a href='../../131table.subx.html#L26'>get</a> out, b <span id="L50" class="LineNr"> 50 </span> copy-to *dest, one-f <span id="L51" class="LineNr"> 51 </span> <a href='3.mu.html#L337'>rgb-scale-up</a> out, t @@ -127,9 +127,9 @@ if ('onhashchange' in window) { <span id="L66" class="LineNr"> 66 </span> <span class="muComment"># height = 400 * 9/16 = 225</span> <span id="L67" class="LineNr"> 67 </span> <span class="PreProc">var</span> aspect: float <span id="L68" class="LineNr"> 68 </span> <span class="PreProc">var</span> aspect-addr/<span class="Constant">eax</span>: (addr float) <span class="SpecialChar"><-</span> address aspect -<span id="L69" class="LineNr"> 69 </span> <a href='../../409float.mu.html#L3'>fill-in-rational</a> aspect-addr, <span class="Constant">0x10</span>, <span class="Constant">9</span> <span class="muComment"># 16/9</span> +<span id="L69" class="LineNr"> 69 </span> <a href='../../408float.mu.html#L3'>fill-in-rational</a> aspect-addr, <span class="Constant">0x10</span>, <span class="Constant">9</span> <span class="muComment"># 16/9</span> <span id="L70" class="LineNr"> 70 </span><span class="CommentedCode">#? print-string 0, "aspect ratio: "</span> -<span id="L71" class="LineNr"> 71 </span><span class="CommentedCode">#? print-float 0, aspect</span> +<span id="L71" class="LineNr"> 71 </span><span class="CommentedCode">#? print-float-hex 0, aspect</span> <span id="L72" class="LineNr"> 72 </span><span class="CommentedCode">#? print-string 0, " "</span> <span id="L73" class="LineNr"> 73 </span><span class="CommentedCode">#? {</span> <span id="L74" class="LineNr"> 74 </span><span class="CommentedCode">#? var foo2/ebx: int <- reinterpret aspect</span> @@ -144,7 +144,7 @@ if ('onhashchange' in window) { <span id="L83" class="LineNr"> 83 </span> <span class="PreProc">var</span> two-f/<span class="Constant">xmm4</span>: float <span class="SpecialChar"><-</span> convert tmp <span id="L84" class="LineNr"> 84 </span> <span class="PreProc">var</span> viewport-height/<span class="Constant">xmm7</span>: float <span class="SpecialChar"><-</span> copy two-f <span id="L85" class="LineNr"> 85 </span><span class="CommentedCode">#? print-string 0, "viewport height: "</span> -<span id="L86" class="LineNr"> 86 </span><span class="CommentedCode">#? print-float 0, viewport-height</span> +<span id="L86" class="LineNr"> 86 </span><span class="CommentedCode">#? print-float-hex 0, viewport-height</span> <span id="L87" class="LineNr"> 87 </span><span class="CommentedCode">#? print-string 0, " "</span> <span id="L88" class="LineNr"> 88 </span><span class="CommentedCode">#? {</span> <span id="L89" class="LineNr"> 89 </span><span class="CommentedCode">#? var foo: float</span> @@ -157,7 +157,7 @@ if ('onhashchange' in window) { <span id="L96" class="LineNr"> 96 </span> <span class="PreProc">var</span> viewport-width/<span class="Constant">xmm6</span>: float <span class="SpecialChar"><-</span> convert tmp <span id="L97" class="LineNr"> 97 </span> viewport-width <span class="SpecialChar"><-</span> multiply aspect <span id="L98" class="LineNr"> 98 </span><span class="CommentedCode">#? print-string 0, "viewport width: "</span> -<span id="L99" class="LineNr"> 99 </span><span class="CommentedCode">#? print-float 0, viewport-width</span> +<span id="L99" class="LineNr"> 99 </span><span class="CommentedCode">#? print-float-hex 0, viewport-width</span> <span id="L100" class="LineNr">100 </span><span class="CommentedCode">#? print-string 0, " "</span> <span id="L101" class="LineNr">101 </span><span class="CommentedCode">#? {</span> <span id="L102" class="LineNr">102 </span><span class="CommentedCode">#? var foo: float</span> @@ -231,7 +231,7 @@ if ('onhashchange' in window) { <span id="L170" class="LineNr">170 </span> <span class="PreProc">var</span> u/<span class="Constant">xmm0</span>: float <span class="SpecialChar"><-</span> convert i <span id="L171" class="LineNr">171 </span> u <span class="SpecialChar"><-</span> divide image-width-1 <span id="L172" class="LineNr">172 </span><span class="CommentedCode">#? print-string 0, "u: "</span> -<span id="L173" class="LineNr">173 </span><span class="CommentedCode">#? print-float 0, u</span> +<span id="L173" class="LineNr">173 </span><span class="CommentedCode">#? print-float-hex 0, u</span> <span id="L174" class="LineNr">174 </span><span class="CommentedCode">#? print-string 0, "\n"</span> <span id="L175" class="LineNr">175 </span> <span class="muComment"># v = j / (image-height - 1)</span> <span id="L176" class="LineNr">176 </span> <span class="PreProc">var</span> v/<span class="Constant">xmm1</span>: float <span class="SpecialChar"><-</span> convert j @@ -322,7 +322,7 @@ if ('onhashchange' in window) { <span id="L261" class="LineNr">261 </span> <span class="PreProc">var</span> c/<span class="Constant">esi</span>: (addr rgb) <span class="SpecialChar"><-</span> copy _c <span id="L262" class="LineNr">262 </span> <span class="PreProc">var</span> xn: float <span id="L263" class="LineNr">263 </span> <span class="PreProc">var</span> xn-addr/<span class="Constant">ecx</span>: (addr float) <span class="SpecialChar"><-</span> address xn -<span id="L264" class="LineNr">264 </span> <a href='../../409float.mu.html#L3'>fill-in-rational</a> xn-addr, <span class="Constant">0x3e7ff</span>, <span class="Constant">0x3e8</span> <span class="muComment"># 255999 / 1000</span> +<span id="L264" class="LineNr">264 </span> <a href='../../408float.mu.html#L3'>fill-in-rational</a> xn-addr, <span class="Constant">0x3e7ff</span>, <span class="Constant">0x3e8</span> <span class="muComment"># 255999 / 1000</span> <span id="L265" class="LineNr">265 </span> <span class="muComment"># print 255.999 * c->r</span> <span id="L266" class="LineNr">266 </span> <span class="PreProc">var</span> result/<span class="Constant">xmm0</span>: float <span class="SpecialChar"><-</span> copy xn <span id="L267" class="LineNr">267 </span> <span class="PreProc">var</span> src-addr/<span class="Constant">eax</span>: (addr float) <span class="SpecialChar"><-</span> <a href='../../131table.subx.html#L26'>get</a> c, r @@ -350,13 +350,13 @@ if ('onhashchange' in window) { <span id="L289" class="LineNr">289 </span> <span class="PreProc">var</span> v/<span class="Constant">esi</span>: (addr rgb) <span class="SpecialChar"><-</span> copy _v <span id="L290" class="LineNr">290 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <a href='../../405screen.mu.html#L9'>screen</a>, <span class="Constant">"("</span> <span id="L291" class="LineNr">291 </span> <span class="PreProc">var</span> tmp/<span class="Constant">eax</span>: (addr float) <span class="SpecialChar"><-</span> <a href='../../131table.subx.html#L26'>get</a> v, r -<span id="L292" class="LineNr">292 </span> <a href='../../408print-float.mu.html#L92'>print-float</a> <a href='../../405screen.mu.html#L9'>screen</a>, *tmp +<span id="L292" class="LineNr">292 </span> <a href='../../409print-float-hex.mu.html#L118'>print-float-hex</a> <a href='../../405screen.mu.html#L9'>screen</a>, *tmp <span id="L293" class="LineNr">293 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <a href='../../405screen.mu.html#L9'>screen</a>, <span class="Constant">", "</span> <span id="L294" class="LineNr">294 </span> tmp <span class="SpecialChar"><-</span> <a href='../../131table.subx.html#L26'>get</a> v, g -<span id="L295" class="LineNr">295 </span> <a href='../../408print-float.mu.html#L92'>print-float</a> <a href='../../405screen.mu.html#L9'>screen</a>, *tmp +<span id="L295" class="LineNr">295 </span> <a href='../../409print-float-hex.mu.html#L118'>print-float-hex</a> <a href='../../405screen.mu.html#L9'>screen</a>, *tmp <span id="L296" class="LineNr">296 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <a href='../../405screen.mu.html#L9'>screen</a>, <span class="Constant">", "</span> <span id="L297" class="LineNr">297 </span> tmp <span class="SpecialChar"><-</span> <a href='../../131table.subx.html#L26'>get</a> v, b -<span id="L298" class="LineNr">298 </span> <a href='../../408print-float.mu.html#L92'>print-float</a> <a href='../../405screen.mu.html#L9'>screen</a>, *tmp +<span id="L298" class="LineNr">298 </span> <a href='../../409print-float-hex.mu.html#L118'>print-float-hex</a> <a href='../../405screen.mu.html#L9'>screen</a>, *tmp <span id="L299" class="LineNr">299 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <a href='../../405screen.mu.html#L9'>screen</a>, <span class="Constant">")"</span> <span id="L300" class="LineNr">300 </span><span class="Delimiter">}</span> <span id="L301" class="LineNr">301 </span> @@ -424,13 +424,13 @@ if ('onhashchange' in window) { <span id="L363" class="LineNr">363 </span> <span class="PreProc">var</span> v/<span class="Constant">esi</span>: (addr vec3) <span class="SpecialChar"><-</span> copy _v <span id="L364" class="LineNr">364 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <a href='../../405screen.mu.html#L9'>screen</a>, <span class="Constant">"("</span> <span id="L365" class="LineNr">365 </span> <span class="PreProc">var</span> tmp/<span class="Constant">eax</span>: (addr float) <span class="SpecialChar"><-</span> <a href='../../131table.subx.html#L26'>get</a> v, x -<span id="L366" class="LineNr">366 </span> <a href='../../408print-float.mu.html#L92'>print-float</a> <a href='../../405screen.mu.html#L9'>screen</a>, *tmp +<span id="L366" class="LineNr">366 </span> <a href='../../409print-float-hex.mu.html#L118'>print-float-hex</a> <a href='../../405screen.mu.html#L9'>screen</a>, *tmp <span id="L367" class="LineNr">367 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <a href='../../405screen.mu.html#L9'>screen</a>, <span class="Constant">", "</span> <span id="L368" class="LineNr">368 </span> tmp <span class="SpecialChar"><-</span> <a href='../../131table.subx.html#L26'>get</a> v, y -<span id="L369" class="LineNr">369 </span> <a href='../../408print-float.mu.html#L92'>print-float</a> <a href='../../405screen.mu.html#L9'>screen</a>, *tmp +<span id="L369" class="LineNr">369 </span> <a href='../../409print-float-hex.mu.html#L118'>print-float-hex</a> <a href='../../405screen.mu.html#L9'>screen</a>, *tmp <span id="L370" class="LineNr">370 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <a href='../../405screen.mu.html#L9'>screen</a>, <span class="Constant">", "</span> <span id="L371" class="LineNr">371 </span> tmp <span class="SpecialChar"><-</span> <a href='../../131table.subx.html#L26'>get</a> v, z -<span id="L372" class="LineNr">372 </span> <a href='../../408print-float.mu.html#L92'>print-float</a> <a href='../../405screen.mu.html#L9'>screen</a>, *tmp +<span id="L372" class="LineNr">372 </span> <a href='../../409print-float-hex.mu.html#L118'>print-float-hex</a> <a href='../../405screen.mu.html#L9'>screen</a>, *tmp <span id="L373" class="LineNr">373 </span> <a href='../../405screen.mu.html#L169'>print-string</a> <a href='../../405screen.mu.html#L9'>screen</a>, <span class="Constant">")"</span> <span id="L374" class="LineNr">374 </span><span class="Delimiter">}</span> <span id="L375" class="LineNr">375 </span> @@ -512,7 +512,7 @@ if ('onhashchange' in window) { <span id="L451" class="LineNr">451 </span><span class="PreProc">fn</span> <span class="muFunction">vec3-unit</span> in: (addr vec3), out: (addr vec3) <span class="Delimiter">{</span> <span id="L452" class="LineNr">452 </span> <span class="PreProc">var</span> len/<span class="Constant">xmm0</span>: float <span class="SpecialChar"><-</span> vec3-length in <span id="L453" class="LineNr">453 </span><span class="CommentedCode">#? print-string 0, "len: "</span> -<span id="L454" class="LineNr">454 </span><span class="CommentedCode">#? print-float 0, len</span> +<span id="L454" class="LineNr">454 </span><span class="CommentedCode">#? print-float-hex 0, len</span> <span id="L455" class="LineNr">455 </span><span class="CommentedCode">#? print-string 0, "\n"</span> <span id="L456" class="LineNr">456 </span> copy-object in, out <span id="L457" class="LineNr">457 </span> vec3-scale-down out, len |