0027286: Visualization, TKOpenGl - avoid using light index within built-in GLSL progr...
[occt.git] / tests / v3d / glsl / gouraud_dir2
CommitLineData
f68acbf4 1puts "========"
2puts "Per-vertex 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
6# setup viewer
7vcaps -ffp 0
8vrenderparams -shadingModel vert
9vlight delete 0
10vlight delete 0
11vlight delete 0
12vlight delete 0
13vlight delete 0
14vlight add ambient color WHITE
15vlight add directional dir 1 0 0 color GREEN headlight 1
16vlight add directional dir -1 0 0 color RED1 headlight 1
17
18# display shape
19restore [locate_data_file occ/fuse.brep] f
20vaxo
21vdisplay f -dispmode 1
22vfit
23vrotate -0.5 0.0 0.0
24vfit