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

SCM Repository

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

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

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

revision 1232, Mon May 16 23:37:52 2011 UTC revision 1233, Tue May 17 15:50:45 2011 UTC
# Line 47  Line 47 
47      <span class="code-kw">update</span> {      <span class="code-kw">update</span> {
48          pos = pos + stepSz*dir;          pos = pos + stepSz*dir;
49          <span class="code-kw">if</span> (inside (pos,F)) {          <span class="code-kw">if</span> (inside (pos,F)) {
50              <span class="code-type">real</span> val = F@pos;              <span class="code-type">real</span> val = F(pos);
51              <span class="code-type">vec3</span> grad = <span class="code-kw">D</span> F@pos;              <span class="code-type">vec3</span> grad = <span class="code-kw">D</span> F(pos);
52              <span class="code-type">vec3</span> norm = -grad / |grad|;              <span class="code-type">vec3</span> norm = -grad / |grad|;
53              <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>
54                  <span class="code-type">real</span> opac =                  <span class="code-type">real</span> opac =
# Line 79  Line 79 
79  </div>  </div>
80    
81  <hr />  <hr />
82  Last modified: October 13, 2010.  Last modified: May 17, 2010.
83  <hr />  <hr />
84    
85  </body>  </body>

Legend:
Removed from v.1232  
changed lines
  Added in v.1233

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