0028107: Visualization - provide a flexible interface to set custom hatch styles
[occt.git] / tests / bugs / vis / bug24725
CommitLineData
d399d3c3 1puts "============"
2puts "CR24725"
3puts "============"
4puts ""
5
6########################################################
7# Test texture color modulation for AIS_TexturedShape
8########################################################
9
10set aV "Driver1/Viewer1/View1"
11vinit name=$aV l=32 t=32 w=400 h=400
12vactivate $aV
13vclear
14
15box b 1 2 3
16vdisplay b
17vsetdispmode 1
18vtexture b 0
19vlight clear
20vlight add ambient color white
21vfit
22
23set check_x 142
24set check_y 352
25
26vtexture b -modulate off
27
28checkcolor $check_x $check_y 1 1 1
29
30if { $stat != 1 } {
31 puts "Error : color of non-modulated texture is incorrect"
32}
33
34vdump $imagedir/${casename}_1.png
35
36vtexture b -modulate on
37
38checkcolor $check_x $check_y 0.329 0.224 0.027
39
40if { $stat != 1 } {
41 puts "Error : color of modulated texture is incorrect"
42}
43
44vdump $imagedir/${casename}_2.png