2 puts "OCC25201: Visualization - Implementing soft shadows and ambient occlusion in OCCT ray-tracing core"
6 set aShape1 [locate_data_file occ/Top.brep]
7 set aShape2 [locate_data_file occ/Bottom.brep]
9 # setup 3D viewer content
10 vinit name=View1 w=512 h=512
15 vbackground -gradient B4C8FF B4B4B4 -gradientMode VERTICAL
21 vsetmaterial s2 Silver
22 vsetlocation s1 0.0 0.1 0.0
23 vlight -change 0 -dir 0.667 -0.667 -0.333
24 vturnview 3.0 -1.2 -0.1
27 # activate path tracing
28 vrenderparams -raytrace
30 vrenderparams -rayDepth 12
34 vlight change 0 sm 0.1
35 vlight change 0 int 100
36 vbsdf s1 roughness 6400
39 vdump $imagedir/${casename}_${aModeNum}.png
43 vbsdf s1 absorpcoeff 1.0
46 vdump $imagedir/${casename}_${aModeNum}.png
49 vsetmaterial s2 plaster
52 vdump $imagedir/${casename}_${aModeNum}.png