0030690: Draw Harness - provide XDisplay command for displaying XDE document
[occt.git] / tests / v3d / glsl / distinguish_off
CommitLineData
95b2678c 1puts "========"
2puts "0025822: Visualization, TKOpenGl - front material should be used instead of back material within distinguish mode turned off"
3puts "========"
4
5pload MODELING OCAF XDE
6box b 10 10 10
7vclear
ab1f4580 8vinit View1
95b2678c 9catch { Close D }
e837410d 10NewDocument D BinXCAF
95b2678c 11XAddShape D b
12XSetColor D b 0 0 1
13explode b f
14XSetColor D b_1 1 0 0
15
ab1f4580 16XDisplay D
95b2678c 17vviewparams -proj 1 0.1 0.1
18vfit
19vsetdispmode 1
20
21catch { vclipplane delete pln }
22vclipplane create pln
ab1f4580 23vclipplane set pln view Driver1/Viewer1/View1
95b2678c 24vclipplane change pln equation -1 0 0 5
25
26# FFP on, pixel is RED3, which is expected
27vcaps -ffp 1
28set aColorFfp [vreadpixel 200 200 rgb name]
29if { "$aColorFfp" != "RED3" } {
30 puts "Error: RED3 color is expected at the back side (FFP)"
31}
32
33# GLSL on, pixel should has the same color RED3, but actual color is KHAKI1
34vcaps -ffp 0
35set aColorGlsl [vreadpixel 200 200 rgb name]
36if { "$aColorGlsl" != "RED3" } {
37 puts "Error: RED3 color is expected at the back side (GLSL)"
38}