Skip to content

Commit 6f25b39

Browse files
committed
Improved examples
1 parent d46cfed commit 6f25b39

2 files changed

Lines changed: 31 additions & 6 deletions

File tree

examples/box.prc

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66
(sampler
77
:slot 'aa'
88
:type 'sobol'
9+
:sample_count 4
10+
)
11+
(sampler
12+
:slot 'spectral'
13+
:type 'random'
914
:sample_count 8
1015
)
1116
(filter
@@ -14,7 +19,7 @@
1419
:radius 1
1520
)
1621
(integrator
17-
:type 'debug'
22+
:type 'direct'
1823
:max_ray_depth 4
1924
:light_sample_count 1
2025
:msi true
@@ -151,9 +156,18 @@
151156
:transform [1.0,0.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0,1.0,2.0,0.0,0.0,0.0,1.0]
152157
)
153158
; Materials
159+
;(spectrum
160+
; :name 'Glass_ior'
161+
; :type 'file'
162+
; :data (refl 1.000000 1.000000 1.000000)
163+
;)
164+
;(color
165+
; :name 'Glass_specular_color'
166+
; :data (rgb 1 1 1)
167+
;)
154168
(spectrum
155169
:name 'Glass_specular_color'
156-
:data (refl 1.000000 1.000000 1.000000)
170+
:data (refl 1 1 1)
157171
)
158172
(material
159173
:name 'Glass'

examples/sphere.prc

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,20 @@
55
(sampler
66
:slot 'aa'
77
:type 'sobol'
8-
:sample_count 32
8+
:sample_count 1
9+
)
10+
(sampler
11+
:slot 'spectral'
12+
:type 'random'
13+
:sample_count 8
914
)
1015
(filter
1116
:slot 'pixel'
1217
:type 'mitchell'
1318
:radius 1
1419
)
1520
(integrator
16-
:type 'ao'
21+
:type 'direct'
1722
:sample_count 32
1823
)
1924
; Outputs
@@ -58,6 +63,11 @@
5863
0,0,1,0,
5964
0,0,0,1]
6065
)
66+
(light
67+
:name 'env'
68+
:type 'env'
69+
:radiance (illuminant 'D65')
70+
)
6171
; Entity Sphere
6272
(entity
6373
:name 'Sphere'
@@ -88,7 +98,8 @@
8898
)
8999
(material
90100
:name 'Material'
91-
:type 'diffuse'
92-
:albedo 'Material_diffuse_color'
101+
:type 'glass'
102+
:index 1.55
103+
:specular 'Material_diffuse_color'
93104
)
94105
)

0 commit comments

Comments
 (0)