0031682: Visualization - Prs3d_ShadingAspect::SetTransparency() has no effect with...
[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
392ac980 10vclear
8e0a2b19 11vclose ALL
12vinit View1
4c513386 13vdefaults -absDefl 0.5
392ac980 14vsetdispmode 1
12381341 15vaxo
392ac980 16vdisplay f
17vfit
18vrotate -0.5 0.0 0.0
19vfit
20
21# take snapshot with fixed pipeline
22vdump $::imagedir/${::casename}_OFF.png
23vshaderprog f phong
24vdump $::imagedir/${::casename}_ph1.png
25
26vclear
27vdisplay f
28vshaderprog f phong
29vdump $::imagedir/${::casename}_ph2.png
30vmoveto 250 250