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

SCM Repository

[diderot] Diff of /branches/vis12/test/vr-phong.diderot
ViewVC logotype

Diff of /branches/vis12/test/vr-phong.diderot

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

revision 1685, Sun Jan 22 15:23:36 2012 UTC revision 1927, Sat Jun 23 18:09:16 2012 UTC
# Line 3  Line 3 
3  // volume rendering example in Diderot  // volume rendering example in Diderot
4  //  //
5    
 //input string dataFile;                // name of dataset  
 //input string txfFile;         // name of transfer-function file  
 string dataFile = "../data/txs.nrrd";  
 string txfFile = "../data/dummy-txf-rgba.nrrd";  
6  input real stepSz;              // size of steps  input real stepSz;              // size of steps
7  input vec3 lightDir;  input vec3 lightDir;
8  input vec3 lightRGB;  input vec3 lightRGB;
# Line 19  Line 15 
15  input real ks;  input real ks;
16  input real sh;  input real sh;
17    
18  field#2(3)[] F = bspln3 (*) load(dataFile);  field#2(3)[] F = bspln3 (*) image("../data/txs.nrrd");
19  field#0(1)[4] txf = tent ⊛ load(txfFile);  field#0(1)[4] txf = tent ⊛ image("../data/dummy-txf-rgba.nrrd");
20    
21  strand RayCast (int row, int col)  strand RayCast (int row, int col)
22  {  {

Legend:
Removed from v.1685  
changed lines
  Added in v.1927

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