Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Diff of /web/htdocs/vr-lite.html
ViewVC logotype

Diff of /web/htdocs/vr-lite.html

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1111, Wed May 4 21:51:56 2011 UTC revision 1112, Thu May 5 01:30:20 2011 UTC
# Line 44  Line 44 
44      <span class="code-kw">update</span> {      <span class="code-kw">update</span> {
45          pos = pos + stepSz*dir;          pos = pos + stepSz*dir;
46          <span class="code-kw">if</span> (inside (pos,F)) {          <span class="code-kw">if</span> (inside (pos,F)) {
47              <span class="code-type">real</span> val = F@pos;              <span class="code-type">real</span> val = F(pos);
48              <span class="code-type">vec3</span> grad = ∇F@pos;              <span class="code-type">vec3</span> grad = ∇F(pos);
49              <span class="code-type">vec3</span> norm = -grad / |grad|;              <span class="code-type">vec3</span> norm = -grad / |grad|;
50              <span class="code-kw">if</span> (val > valOpacMin) {  <span class="code-comment">// we have some opacity </span>              <span class="code-kw">if</span> (val > valOpacMin) {  <span class="code-comment">// we have some opacity </span>
51                  <span class="code-type">real</span> opac =                  <span class="code-type">real</span> opac =

Legend:
Removed from v.1111  
changed lines
  Added in v.1112

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0