mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0032121: Draw Harness, ViewerTest - implement -reset option for vlight command
vlight command has been revised to provide more friendly syntax. Command now accepts light index or name as first argument. Added arguments -enable/-disable for managing enabled state. Added argument -reset to reset light parameters to default values. V3d_Viewer::SetDefaultLights() now sets names "headlight" and "ambient" to created lights. Graphic3d_TypeOfLightSource enumeration values have been renamed to avoid shortcuts. Draw::Atof(), applied corrections to avoid explicit new/delete calls.
This commit is contained in:
@@ -22,7 +22,7 @@ vdisplay s1 s2
|
||||
vsetmaterial s1 Gold
|
||||
vsetmaterial s2 Silver
|
||||
vsetlocation s1 0.0 0.1 0.0
|
||||
vlight -change 0 -dir 0.667 -0.667 -0.333
|
||||
vlight -change 0 -dir 0.667 -0.667 -0.333 -smoothAngle 6 -intensity 100
|
||||
vturnview 3.0 -1.2 -0.1
|
||||
vfit
|
||||
|
||||
@@ -33,8 +33,6 @@ vrenderparams -rayDepth 12
|
||||
|
||||
set aModeNum 0
|
||||
|
||||
vlight change 0 sm 0.1
|
||||
vlight change 0 int 100
|
||||
vbsdf s1 roughness 6400
|
||||
|
||||
vfps 200
|
||||
@@ -52,4 +50,4 @@ vsetmaterial s2 plaster
|
||||
|
||||
vfps 200
|
||||
vdump $imagedir/${casename}_${aModeNum}.png
|
||||
incr aModeNum
|
||||
incr aModeNum
|
||||
|
@@ -72,6 +72,6 @@ vfront
|
||||
vturnview 0 -0.3 0
|
||||
vfit
|
||||
vlight -change 0 -dir -0.577 -0.577 -0.577
|
||||
vlight add directional
|
||||
vlight dirlight -type directional
|
||||
vrenderparams -raytrace -raydepth 5 -shadows off -reflections -fsaa
|
||||
vdump ${imagedir}/${casename}.png
|
||||
|
Reference in New Issue
Block a user