0033661: Data Exchange, Step Import - Tessellated GDTs are not imported
[occt.git] / tests / v3d / materials / ior
1 puts "========"
2 puts "0031284: Visualization - XCAFDoc_VisMaterialPBR lacks Index of Refraction"
3 puts "========"
4
5 pload MODELING XDE OCAF VISUALIZATION
6 box b 0.5 1.0 -0.5 3 1 1
7 psphere s1 0.5
8 psphere s2 0.5
9 psphere s3 0.5
10 ttranslate s1 1 0 0
11 ttranslate s2 2 0 0
12 ttranslate s3 3 0 0
13 catch { Close D }
14 XNewDoc D
15 set l0 [XAddShape D b  0]
16 set l1 [XAddShape D s1 0]
17 set l2 [XAddShape D s2 0]
18 set l3 [XAddShape D s3 0]
19 XAddVisMaterial D m1 -baseColor GREEN -refractionIndex 1.0 -transparency 0.5 -metallic 0 -roughness 0
20 XAddVisMaterial D m2 -baseColor GREEN -refractionIndex 1.3 -transparency 0.5 -metallic 0 -roughness 0
21 XAddVisMaterial D m3 -baseColor GREEN -refractionIndex 2.5 -transparency 0.5 -metallic 0 -roughness 0
22 XSetVisMaterial D $l1 m1
23 XSetVisMaterial D $l2 m2
24 XSetVisMaterial D $l3 m3
25
26 vclear
27 vinit View1
28 vcamera -persp
29 vfront
30 XDisplay -dispMode 1 D
31 vfit
32 vviewparams -scale 245 -proj -0 -0.75 -0.66 -up 0 -0.66 0.75 -at 2.0 0.84 0.04
33 vlight -change 0 -intensity 2.5
34 vlight -change 1 -intensity 1.0
35 set aCubeMap [locate_data_file Circus_CubeMap_V.png]
36 vbackground -cubemap $aCubeMap
37
38 vrenderparams -shadingModel PBR -raster
39 vdump $imagedir/${casename}_pbr.png
40
41 vrenderparams -raytrace -gi 0 -reflections 1 -rayDepth 10
42 vfps 200
43 vdump $imagedir/${casename}_rt.png
44
45 vrenderparams -raytrace -gi 1
46 vfps 200
47 vdump $imagedir/${casename}_pt.png