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