File: bug24725

package info (click to toggle)
oce 0.18.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 301,548 kB
  • sloc: cpp: 1,190,609; ansic: 67,225; sh: 11,630; tcl: 7,954; cs: 5,221; python: 2,867; java: 1,522; makefile: 342; xml: 292; perl: 37
file content (44 lines) | stat: -rw-r--r-- 826 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
puts "============"
puts "CR24725"
puts "============"
puts ""

########################################################
#  Test texture color modulation for AIS_TexturedShape
########################################################

set aV "Driver1/Viewer1/View1"
vinit name=$aV l=32 t=32 w=400 h=400
vactivate $aV
vclear

box b 1 2 3
vdisplay b
vsetdispmode 1
vtexture b 0
vlight clear
vlight add ambient color white
vfit

set check_x 142
set check_y 352

vtexture b -modulate off

checkcolor $check_x $check_y 1 1 1

if { $stat != 1 } {
  puts "Error : color of non-modulated texture is incorrect"
}

vdump $imagedir/${casename}_1.png

vtexture b -modulate on

checkcolor $check_x $check_y 0.329 0.224 0.027

if { $stat != 1 } {
  puts "Error : color of modulated texture is incorrect"
}

vdump $imagedir/${casename}_2.png