0027943: Visualization - fix broken shading by positional light for object with local...
[occt.git] / tests / v3d / glsl / 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
6# setup viewer
7vcaps -ffp 0
8vrenderparams -shadingModel phong
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