projects
/
occt.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
f6fa3087614dbf5b82d67a859af9ff20947b5492
[occt.git]
/
tests
/
v3d
/
glsl
/
phong_views
1
puts "========"
2
puts "Per-pixel lighting using GLSL program (Phong shading)"
3
puts "========"
4
5
# create box
6
box b 1 2 3
7
8
# draw box
9
vinit View1
10
vclear
11
vsetdispmode 1
12
vdisplay b
13
vfit
14
vrotate 0.2 0.0 0.0
15
16
vshaderprog b phong
17
vdump $::imagedir/${::casename}_1.png
18
19
vinit View2
20
vdump $::imagedir/${::casename}_2.png
21
vclose View2