ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/test/renders/gymbal2.rad
Revision: 1.1
Committed: Mon Dec 9 00:44:29 2024 UTC (4 months, 4 weeks ago) by greg
Branch: MAIN
Log Message:
feat: Added new WGMDfunc programmable material

File Contents

# User Rev Content
1 greg 1.1 # RCSid $Id: gymbal.rad,v 1.1 2018/11/17 22:09:12 greg Exp $
2     #
3     # Tests of WGMDfunc material
4     #
5    
6     void colorfunc check1
7     6 if(Check(12),.5,.1) if(Check(12),.1,.7) if(Check(12),.4,.9)
8     cylmods.cal -ry 90
9     0
10     0
11    
12     void WGMDfunc wgmd_mat1
13     15
14     void .08 if(Check(8),.005,.07) if(Check(8),.07,.005)
15     check1 .2 0 0
16     void
17     0 0 1
18     cylmods.cal -ry 90
19     0
20     9
21     .05 .01 .05
22     .05 .2 .05
23     0 0 0
24    
25     void texfunc pyramid2
26     8 Pyramid_dx(13) Pyramid_dy(13) Pyramid_dz(13)
27     cylmods.cal -s .9 -rx 90
28     0
29     0
30    
31     void colorfunc check2
32     8 if(Check(9),.9,.1) .1 if(Check(9),.3,.1)
33     cylmods.cal -s .9 -rx 90
34     0
35     0
36    
37     void WGMDfunc wgmd_mat2
38     13
39     pyramid2 .08 0 0
40     check2 .2 .02 .02
41     void
42     0 0 0
43     .
44     0
45     9
46     0 0 0
47     0 0 0
48     0 0 0
49    
50     void colorfunc check3
51     6 if(Check(7),.9,.1) .1 if(Check(7),.3,.1)
52     cylmods.cal -s .8
53     0
54     0
55    
56     check3 WGMDfunc wgmd_mat3
57     13
58     void .03 .08 .03
59     void 0 0 0
60     inherit
61     0 0 1
62     .
63     0
64     9
65     0 0 0
66     .4 .1 .1
67     .3 .3 .4
68    
69    
70     wgmd_mat1 cylinder cyl1
71     0
72     0
73     7
74     -4.4 2.5 1.1
75     -3.6 2.5 1.1
76     1
77    
78     wgmd_mat2 tube tube2
79     0
80     0
81     7
82     -4 2.1 1.1
83     -4 2.9 1.1
84     .9
85    
86     wgmd_mat3 cylinder cyl3
87     0
88     0
89     7
90     -4 2.5 0.7
91     -4 2.5 1.5
92     .8