2 puts "Per-pixel lighting using GLSL program (Phong shading), check lighting of back faces"
19 # take snapshot with fixed pipeline
20 vdump $::imagedir/${::casename}_OFF.png
21 set aColorB [vreadpixel 150 150 rgb name]
22 set aColorF [vreadpixel 250 250 rgb name]
23 if { "$aColorB" != "$aColorF"} {
24 puts "Error: front/back colors are different!"
26 set aColorFixed $aColorF
28 # activate phong shader
30 set aColorB [vreadpixel 150 150 rgb name]
31 set aColorF [vreadpixel 250 250 rgb name]
32 if { "$aColorB" != "$aColorF"} {
33 puts "Error: front/back colors are different!"
36 if { "$aColorF" != "$aColorFixed"} {
37 puts "Error: colors are different!"