0024250: TKOpenGl - per-pixel lighting using GLSL program (Phong shading)
[occt.git] / tests / v3d / glsl / phong_views
diff --git a/tests/v3d/glsl/phong_views b/tests/v3d/glsl/phong_views
new file mode 100644 (file)
index 0000000..f6fa308
--- /dev/null
@@ -0,0 +1,21 @@
+puts "========"
+puts "Per-pixel lighting using GLSL program (Phong shading)"
+puts "========"
+
+# create box
+box b 1 2 3
+
+# draw box
+vinit View1
+vclear
+vsetdispmode 1
+vdisplay b
+vfit
+vrotate 0.2 0.0 0.0
+
+vshaderprog b phong
+vdump $::imagedir/${::casename}_1.png
+
+vinit View2
+vdump $::imagedir/${::casename}_2.png
+vclose View2