1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-02 17:46:22 +03:00
occt/tests/opengl/data/textures/cubemap_ibl
kgv 3e9cb80644 0032590: Visualization, V3d_View - improve API for setting Image Based Lighting
Added method V3d_View::SetImageBasedLighting() for managing IBL.
OpenGl_View implementation has been revised to handle IBL updates in a more straightforward way,
2021-09-26 16:44:20 +03:00

26 lines
632 B
Plaintext

puts "============"
puts "0032590: Visualization, V3d_View - improve API for setting Image Based Lighting"
puts "============"
puts ""
set aCubeMapLabs [locate_data_file cubemap_labels.png]
pload MODELING VISUALIZATION
# PBR doesn't work with Compatible Profile on macOS
if { $::tcl_platform(os) == "Darwin" } { vcaps -core }
vclear
vclose ALL
source $env(CSF_OCCTSamplesPath)/tcl/vis_pbr_spheres.tcl
vcamera -fovy 100
vbackground -cubemap $aCubeMapLabs -pbrEnv noIBL
vdump $imagedir/${casename}_1.png
vbackground -pbrEnv IBL
vdump $imagedir/${casename}_2.png
vbackground BLACK -pbrEnv KEEP
vdump $imagedir/${casename}_3.png