0030700: Visualization, TKOpenGl - support PBR Metallic-Roughness shading model
[occt.git] / tests / v3d / glsl / rendscale
CommitLineData
56689b27 1puts "========"
2puts "Rendering resolution scale factor"
3puts "========"
4
5set aFontFile ""
6catch { set aFontFile [locate_data_file DejaVuSans.ttf] }
7
8pload MODELING VISUALIZATION
9
10set aLabelFont "Arial"
11if { "$aFontFile" != "" } {
12 vfont add "$aFontFile" SansFont
13 set aLabelFont "SansFont"
14}
15
16box b 1 2 3
17vclear
8e0a2b19 18vclose ALL
56689b27 19vinit View1
20vdisplay b
21vfit
22vpoint p 0 0 0
23vzbufftrihedron
24vdrawtext t Text2d -font $aLabelFont
25vtrihedron tt
26vdisplay -trsfPers zoom -trsfPersPos 1 0 0 tt
27text2brep ttl "Top-Left" -font $aLabelFont -height 30 -pos 0 -30 0
28vdisplay ttl -2d topLeft -dispMode 1
29vcolorscale cs -demo
30
31vrenderparams -rendScale 1
32vdump $::imagedir/${::casename}_100.png
33
34vrenderparams -rendScale 0.5
35vdump $::imagedir/${::casename}_050.png
36
37vrenderparams -rendScale 0.75
38vdump $::imagedir/${::casename}_075.png
39
40vrenderparams -rendScale 2
41vdump $::imagedir/${::casename}_200.png