0032121: Draw Harness, ViewerTest - implement -reset option for vlight command
[occt.git] / tests / opengl / data / textures / bug24725
CommitLineData
0d828ac8 1puts "============"
2puts "CR24725: Test texture color modulation for AIS_TexturedShape"
3puts "============"
4puts ""
5
6pload MODELING VISUALIZATION
7set aV "Driver1/Viewer1/View1"
8vinit name=$aV l=32 t=32 w=400 h=400
9vactivate $aV
10vclear
11
12box b 1 2 3
13vdisplay b
14vsetdispmode 1
15vtexture b 0
06d40093 16vlight -clear
17vlight amblight -type AMBIENT -color WHITE
0d828ac8 18vfit
19
20vtexture b -modulate off
21checkcolor 142 352 1 1 1
22if { $stat != 1 } { puts "Error : color of non-modulated texture is incorrect" }
23
24vdump $imagedir/${casename}_1.png
25
26vtexture b -modulate on
27checkcolor 142 352 0.329 0.224 0.027
28if { $stat != 1 } { puts "Error : color of modulated texture is incorrect" }
29
30vdump $imagedir/${casename}_2.png