0032121: Draw Harness, ViewerTest - implement -reset option for vlight command
[occt.git] / tests / opengl / data / shading / phong_dir2
CommitLineData
f68acbf4 1puts "========"
2puts "Per-fragment lighting using built-in GLSL program, two directional light sources."
3puts "Visual comparison with the reference snapshot should be performed for this test case."
4puts "========"
5
0d828ac8 6pload MODELING VISUALIZATION
7
f68acbf4 8# setup viewer
8e0a2b19 9vclear
10vclose ALL
11vinit View1
f68acbf4 12vcaps -ffp 0
13vrenderparams -shadingModel phong
06d40093 14vlight -clear
15vlight amblight -type AMBIENT -color WHITE
16vlight dirlight1 -type DIRECTIONAL -dir 1 0 0 -color GREEN -headlight 1
17vlight dirlight2 -type DIRECTIONAL -dir -1 0 0 -color RED1 -headlight 1
f68acbf4 18
19# display shape
20restore [locate_data_file occ/fuse.brep] f
21vaxo
22vdisplay f -dispmode 1
23vfit
24vrotate -0.5 0.0 0.0
25vfit
0d828ac8 26vdump ${imagedir}/${casename}.png