0031999: Tests - request Core Profile on macOS for Ray-Tracing tests
[occt.git] / tests / v3d / glsl / cubemap_dds
CommitLineData
faff3767 1puts "============"
2puts "0031478: Visualization, TKOpenGl - allow uploading Cubemap in compressed DDS format when supported by GPU"
3puts "============"
4puts ""
5
ba562b2b 6# PBR doesn't work with Compatible Profile on macOS
7if { $::tcl_platform(os) == "Darwin" } { vcaps -core }
8
faff3767 9set aCubeMapPNG [locate_data_file cubemap_labels.png]
10set aCubeMapDDS [locate_data_file cubemap_labels.dds]
11
12box b 1 2 3
13psphere s 1
14
15vclear
16vinit View1 -w 512 -h 512
17vcamera -fovy 100
18vzbufftrihedron
19#vdisplay -dispMode 1 b
20vdisplay -dispMode 1 s
21vfit
22
23vrenderparams -shadingModel pbr
24vbackground -cubemap $aCubeMapPNG -invertedz
25vdump $imagedir/${casename}_png.png
26
27vbackground -cubemap $aCubeMapDDS -invertedz
28vdump $imagedir/${casename}_dds.png