mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
OpenGl_LayerList::renderLayer() - fixed usage of wrong camera while rendering shadowmap, and apply Z-Layer origin shift to shadowmap matrix while applying shadow.
24 lines
693 B
Plaintext
24 lines
693 B
Plaintext
puts "========"
|
|
puts "0032129: Visualization, TKOpenGl - shadowmap is broken for ZLayer having non-zero origin"
|
|
puts "========"
|
|
|
|
pload MODELING VISUALIZATION
|
|
box b 0 0 1 100 200 300
|
|
box bb -500 -500 0 1000 1000 0 -preview
|
|
vinit View1
|
|
vrenderparams -shadingModel PHONG
|
|
vdisplay -dispMode 1 b bb
|
|
vaspects bb -material STONE
|
|
vfit
|
|
vlight -change 0 -castShadows 1 -head 0 -dir 1 1 -1
|
|
vdump $::imagedir/${::casename}_1.png
|
|
vzlayer DEFAULT -origin 200 0 0
|
|
vdump $::imagedir/${::casename}_2.png
|
|
|
|
vlocation b -setLocation 1000000000 0 0
|
|
vlocation bb -setLocation 1000000000 0 0
|
|
vfit
|
|
vdump $::imagedir/${::casename}_3.png
|
|
vzlayer DEFAULT -origin 1000000000 0 0
|
|
vdump $::imagedir/${::casename}_4.png
|