0032237: Visualization, TKOpenGl - fix Gouraud shading within perspective camera...
[occt.git] / tests / v3d / shadows / dir1
CommitLineData
d84e8669 1puts "========"
2puts "0032039: Visualization, TKOpenGl - implement simple shadow mapping for a direct light source"
3puts "Test shadow map from a single directional light source on a box geometry."
4puts "========"
5
6pload MODELING VISUALIZATION
7if { $::tcl_platform(os) == "Darwin" } { vcaps -core }
8box b 1 2 3
9box bb -5 -5 0 10 10 0 -preview
10vgldebug 1
11vcaps -core
12vcaps -vsync 0
13vclear
14vinit View1
15vrenderparams -shadingModel PHONG
16vdisplay -dispMode 1 b bb
17vaspects bb -material STONE
18vfit
19vlight -change 0 -castShadows 1 -direction 1 1 -1 -head 0
20
21vraytrace 1
22vdump $::imagedir/${::casename}_raytrace.png
23
24vraytrace 0
25vrenderparams -shadingModel phong
26vrenderparams -shadowMapBias 0.01
27vdump $::imagedir/${::casename}_phong.png
28
29vrenderparams -shadingModel pbr
30vdump $::imagedir/${::casename}_pbr.png