2 puts "Per-pixel lighting using GLSL program (Phong shading), check plastic material"
15 vsetmaterial b PLASTIC
20 # take snapshot with fixed pipeline
21 vdump $::imagedir/${::casename}_OFF.png
22 set aColorL [vreadpixel 150 250 rgb name]
23 set aColorR [vreadpixel 250 250 rgb name]
24 if { "$aColorL" != "GREEN3" || "$aColorR" != "GREEN4" } {
25 puts "Error: wrong color (fixed pipeline)!"
29 set aColorL [vreadpixel 150 250 rgb name]
30 set aColorR [vreadpixel 250 250 rgb name]
31 if { "$aColorL" != "GREEN3" || "$aColorR" != "GREEN4" } {
32 puts "Error: wrong color (Phong shader)!"