0024887: Visualization - revise and extend Raytracing controls
[occt.git] / tests / v3d / raytrace / plastic
CommitLineData
64c759f8 1puts "========"
2puts "Ray Tracing - check lighting on Plastic material"
3puts "========"
4
5# create box
6box b 1 2 3
7
8# draw box
9vinit View1
10vclear
bc8c79bb 11vrenderparams -rasterization
64c759f8 12vsetdispmode 1
13vaxo
14vdisplay b
15vsetmaterial b PLASTIC
16vsetcolor b GREEN
17vfit
18vrotate 0.2 0.0 0.0
19
20# take snapshot with fixed pipeline
21vdump $::imagedir/${::casename}_OFF.png
22set aColorL [vreadpixel 150 250 rgb name]
23set aColorR [vreadpixel 250 250 rgb name]
24if { "$aColorL" != "GREEN3" || "$aColorR" != "GREEN4" } {
25 puts "Error: wrong color (fixed pipeline)!"
26}
27
bc8c79bb 28vrenderparams -raytrace
64c759f8 29set aColorL [vreadpixel 150 250 rgb name]
30set aColorR [vreadpixel 250 250 rgb name]
31#if { "$aColorL" != "GREEN3" || "$aColorR" != "GREEN4" } {
32# puts "Error: wrong color (Ray Tracing)!"
33#}