2 puts "Per-pixel lighting using GLSL program (Phong shading)"
6 restore [locate_data_file occ/fuse.brep] f
13 vdefaults -absDefl 0.5
27 vlight add ambient color WHITE
28 vlight add directional dir 1 0 0 color GREEN headlight 1
29 vlight add directional dir -1 0 0 color RED1 headlight 1
31 # take snapshot with fixed pipeline
32 vdump $::imagedir/${::casename}_OFF.png
34 vdump $::imagedir/${::casename}_ph1.png
39 vdump $::imagedir/${::casename}_ph2.png