changed: gcc8 base update
[opensg.git] / Examples / CSM / Common / system-native-par.osg
blobc9825ff1840d75002f9ca63bab8511bbddfdae42
1 #OSG V1.0 
3 ComplexSceneManager
5   globals
6   [
7     DEF RootNode Node
8     { 
9       core Group {}
11       children
12       [ 
13         DEF CameraRoot Node
14         {
15           core Transform {}
17           children 
18           [ 
19           ]
20         },
22         DEF GlobalEffectRoot Node
23         {
24           core MultiCore
25           {
26             cores
27             [
28               Group {}
29               USE GlobalEffect1
30               USE GlobalEffect2
31             ]
32           }
34           children
35           [
36             DEF SceneRoot Node 
37             {
38               core MultiCore
39               {
40                 cores
41                 [
42                   Group {}
43                   USE SceneEffect1
44                   USE SceneEffect2
45                   USE SceneEffect3
46                   USE SceneEffect4
47                   USE SceneEffect5
48                   USE SceneEffect6
49                   USE SceneEffect7
50                 ]
51               }
53               children
54               [
55                 DEF ZLight Node
56                 {
57                   core DirectionalLight
58                   {
59                     ambient    0.24 0.24 0.24 1.0
60                     diffuse    0.80 0.80 0.80 1.0
61                     direction  0.0 0.0 1.0
62                     on         TRUE
63                     beacon     USE CameraRoot
64                   }
65                   children
66                   [
67                     DEF ModelRoot Node
68                     {
69                       core Group {}
70                     }
71                   ]
72                 }
73               ]
74             }
75           ]
76         }
77       ] 
78     }
80     DEF PerspCamGL CSMPerspectiveCamera
81     {
82       near   0.1
83       far    20000.0
84       fov    60.0
86       beacon USE CameraRoot
87     }
89   ]
91   drawManager DEF DrawManager CSMDrawManager
92   {
93         parallel TRUE
95         syncBarrierName "drawSyncBarrier"
96 #    swapBarrierName "drawSwapBarrier"
98     drawer
99     [
100       CSMDrawer
101       {
102         aspect Drawer0Aspect
104         windows
105         [
106            DEF MainWindow CSMNativeWindow
107            {
108              requestSamples 4
109              enableFSAA     TRUE
111              size 300 300
112              position 200, 200
113              decorEnabled TRUE
115              partitionDrawMode 0x0002
117              renderOptions DEF WinRenderOpts RenderOptions
118              {
119              }
121              viewports
122              [
123                CSMViewport
124                {
125                  root       USE RootNode
126                  camera     USE PerspCamGL
127                  background USE BGnd
129                  foregrounds
130                  [
131                    USE LogoFG
132 #                   USE StatFGnd
133                  ]
134                }
135              ]
136            }
137         ]  
138       }
139     ]
140   }