ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/test/renders/gymbal2.rad
Revision: 1.2
Committed: Mon Dec 9 03:10:36 2024 UTC (4 months, 3 weeks ago) by greg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +16 -16 lines
Log Message:
test: Improved test for new WGMDfunc material

File Contents

# Content
1 # RCSid $Id: gymbal2.rad,v 1.1 2024/12/09 00:44:29 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 19
14 void if(Px,.08,0) 0 0
15 check1 .2 0 0
16 void
17 0 0 1
18 cylmods.cal -ry 90 -t -4 2.5 1.1
19 0
20 9
21 .01 .01 .01
22 .05 .2 .05
23 0 0 0
24
25 void texfunc pyramid2
26 12 Pyramid_dx(13) Pyramid_dy(13) Pyramid_dz(13)
27 cylmods.cal -s .9 -rx 90 -t -4 2.5 1.1
28 0
29 0
30
31 void colorfunc check2
32 12 if(Check(9),.9,.1) .1 if(Check(9),.3,.1)
33 cylmods.cal -s .9 -rx 90 -t -4 2.5 1.1
34 0
35 0
36
37 void WGMDfunc wgmd_mat2
38 17
39 pyramid2 .08 0 0
40 check2 .2 .02 .02
41 void
42 0 0 0
43 . -t -4 2.5 1.1
44 0
45 9
46 0 0 0
47 0 0 0
48 0 0 0
49
50 void colorfunc check3
51 10 if(Check(7),.9,.1) .1 if(Check(7),.3,.1)
52 cylmods.cal -s .8 -t -4 2.5 1.1
53 0
54 0
55
56 check3 WGMDfunc wgmd_mat3
57 17
58 void .03 .08*max(Pz,0) .03*max(Pz,0)
59 void 0 0 0
60 inherit
61 0 0 1
62 . -t -4 2.5 1.1
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