0031999: Tests - request Core Profile on macOS for Ray-Tracing tests
[occt.git] / tests / v3d / glsl / pbr_tangent_normal
... / ...
CommitLineData
1puts "========"
2puts "0031302: Visualization, TKOpenGl - wrong tangent space calculation for normal maps"
3puts "Test for tangent space orientation."
4puts "========"
5
6pload XDE OCAF MODELING VISUALIZATION
7
8# PBR doesn't work with Compatible Profile on macOS
9if { $::tcl_platform(os) == "Darwin" } { vcaps -core }
10
11vclear
12vclose ALL
13
14vinit v -w 1024 -h 1024
15vcamera -persp
16vbackground -cubemap [locate_data_file Circus_CubeMap_V.png]
17vrenderparams -shadingModel PBR
18
19vlight -clear
20vlight -add ambient
21
22catch { Close D }
23ReadGltf D [locate_data_file bug31302_NormalTangentTest.gltf]
24XDisplay -dispmode 1 D
25
26vfront
27vfit
28vdump $imagedir/${casename}_front.png
29
30vback
31vdump $imagedir/${casename}_back.png