0031467: Foundation Classes, OSD_MemInfo - disable reading /proc/%d/status with Emscr...
[occt.git] / tests / v3d / materials / bug24855
CommitLineData
44c7c33e 1puts "========"
f2b42160 2puts "0024855: Revision of parameters of standard materials"
44c7c33e 3puts "========"
4
5# custom shapes
6set aShape [locate_data_file occ/Top.brep]
7
8# setup 3D viewer content
9vinit View1 w=768 h=768
10vglinfo
11
aaf8d6a9 12vbackground -gradient B4C8FF B4B4B4 -gradientMode VERTICAL
44c7c33e 13
14# display shape
992ed6b3 15vlight -change 0 -dir 0.577 -0.577 -0.577
44c7c33e 16restore $aShape s
f2b42160 17vdisplay -dispMode 1 s
44c7c33e 18vfit
19
20proc testmat {dirname filename} {
21 foreach {aMatIter} {brass bronze copper gold jade neon_phc pewter obsidian plaster plastic satin silver steel stone chrome aluminium charcoal} {
22 vsetmaterial -noredraw s $aMatIter
23 vdump $dirname/${filename}_${aMatIter}.png
24 }
25}
26
f2b42160 27# material screenshots, Gouraud shading model (rasterization)
28vrenderparams -shadingModel GOURAUD
44c7c33e 29testmat $imagedir $casename
30
f2b42160 31# material screenshots, Phong shading model (rasterization)
32vrenderparams -shadingModel PHONG
44c7c33e 33testmat $imagedir ${casename}_phong
34
f2b42160 35# material screenshots, Ray-Tracing
bc8c79bb 36vrenderparams -raytrace -reflections -fsaa
44c7c33e 37vtextureenv on 5
44c7c33e 38testmat $imagedir ${casename}_rt