0031682: Visualization - Prs3d_ShadingAspect::SetTransparency() has no effect with...
[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
8e0a2b19 7vclear
8vclose ALL
9vinit View1
f68acbf4 10vcaps -ffp 0
11vrenderparams -shadingModel phong
12vlight delete 0
13vlight delete 0
14vlight delete 0
15vlight delete 0
16vlight delete 0
17vlight add ambient color WHITE
18vlight add directional dir 1 0 0 color GREEN headlight 1
19vlight add directional dir -1 0 0 color RED1 headlight 1
20
21# display shape
22restore [locate_data_file occ/fuse.brep] f
23vaxo
24vdisplay f -dispmode 1
25vfit
26vrotate -0.5 0.0 0.0
27vfit