0029528: Visualization, TKOpenGl - allow defining sRGB textures
[occt.git] / tests / v3d / glsl / gouraud_dir2
1 puts "========"
2 puts "Per-vertex lighting using built-in GLSL program, two directional light sources."
3 puts "Visual comparison with the reference snapshot should be performed for this test case."
4 puts "========"
5
6 # setup viewervclear
7 vclear
8 vclose ALL
9 vinit View1
10 vcaps -ffp 0
11 vrenderparams -shadingModel vert
12 vlight delete 0
13 vlight delete 0
14 vlight delete 0
15 vlight delete 0
16 vlight delete 0
17 vlight add ambient                color WHITE
18 vlight add directional dir  1 0 0 color GREEN headlight 1
19 vlight add directional dir -1 0 0 color RED1  headlight 1
20
21 # display shape
22 restore [locate_data_file occ/fuse.brep] f
23 vaxo
24 vdisplay f -dispmode 1
25 vfit
26 vrotate -0.5 0.0 0.0
27 vfit