0029528: Visualization, TKOpenGl - allow defining sRGB textures
[occt.git] / tests / bugs / vis / bug22985
1 puts "============"
2 puts "OCC22985"
3 puts "============"
4 puts ""
5 #######################################################################
6 # Regression: no shading on good face
7 #######################################################################
8
9 set BugNumber OCC22985
10
11 restore [locate_data_file OCC22985-gt602-f72-noshading.brep] result
12
13 vinit
14 vdisplay result
15 vfit
16
17 vsetdispmode 1
18
19 set x 150
20 set y 175
21
22 set RED_R1   0.68627399206161499
23 set GREEN_R1 0.48627400398254395
24 set BLUE_R1  0.078431000000000001
25
26 vmoveto $x $y
27 vmoveto $x $y
28
29 checkcolor $x $y ${RED_R1} ${GREEN_R1} ${BLUE_R1}
30
31 checkprops result -s 0.0984334 
32 checkshape result
33 checkview -screenshot -3d -path ${imagedir}/${test_image}.png
34