0024739: TKOpenGl - port ray-tracing from OpenCL to GLSL for better integration and...
[occt.git] / tests / v3d / raytrace / connected
CommitLineData
d5af8626 1puts "========"
2puts "Ray Tracing - check rendering of multi-connected structures"
3puts "========"
4
5# create boxes
6box b1 0 0 0 1 2 3
7box b2 3 0 0 3 2 1
8
9# draw box
10vinit View1
11vclear
12vsetdispmode 1
13vraytrace 0
14vaxo
15vconnectsh b1c -3 0 0 1 0 0 0 0 1 b1 b2
16vfit
17vrotate 0.2 0.0 0.0
b5ac8292 18vfit
d5af8626 19vclear
20vconnectsh b1c -3 0 0 1 0 0 0 0 1 b1 b2
21
22# take snapshot with fixed pipeline
23vdump $::imagedir/${::casename}_OFF.png
24
25# turn on ray tracing
26vraytrace 1
d5af8626 27vdump $::imagedir/${::casename}_rt1.png
28
29vclear
30vconnectsh b1c -3 0 0 1 0 0 0 0 1 b1 b2