0024310: TKOpenGl - GLSL compatibility issues
[occt.git] / tests / v3d / glsl / phong_fuse
CommitLineData
392ac980 1puts "========"
2puts "Per-pixel lighting using GLSL program (Phong shading)"
3puts "========"
4
5# import model
6restore [locate_data_file occ/fuse.brep] f
7tclean f
8
9# draw box
10vinit View1
11vclear
12vdefaults absDefl=0.5
13vsetdispmode 1
12381341 14vaxo
392ac980 15vdisplay f
16vfit
17vrotate -0.5 0.0 0.0
18vfit
19
20# take snapshot with fixed pipeline
21vdump $::imagedir/${::casename}_OFF.png
22vshaderprog f phong
23vdump $::imagedir/${::casename}_ph1.png
24
25vclear
26vdisplay f
27vshaderprog f phong
28vdump $::imagedir/${::casename}_ph2.png
29vmoveto 250 250