0032121: Draw Harness, ViewerTest - implement -reset option for vlight command
[occt.git] / tests / opengl / data / general / light_off
CommitLineData
4fe9ad57 1puts "========"
06d40093 2puts "Test to verify the lights are turned off after 'vlight -clear' (and scene is black)"
4fe9ad57 3puts "========"
4
0d828ac8 5pload MODELING VISUALIZATION
6
4fe9ad57 7# create box
8box b 1 2 3
9
10# draw box
4fe9ad57 11vclear
8e0a2b19 12vclose ALL
13vinit View1
4fe9ad57 14vsetdispmode 1
15vdisplay b
16vfit
17
06d40093 18vlight -clear
4fe9ad57 19
20set color [vreadpixel 100 100 rgb]
64c759f8 21set black "0 0 0"
4fe9ad57 22if {[string equal $color $black] != 1} {error "Lights do not seems to be cleared!"}