changed: gcc8 base update
[opensg.git] / Examples / CSM / Common / system-native-mwin-par.osg
blob9a78c44d303848c18bd6c8f210c4d9f501908466
1 #OSG V1.0 
3 ComplexSceneManager
5   globals
6   [
7     DEF RootNode Node
8     { 
9       core Group {}
11       children
12       [ 
13         DEF CameraTrans Node
14         {
15           core Transform {}
16           
17           children
18           [
19             DEF CameraRoot Node
20             {
21               core ComponentTransform {}
23               children 
24               [ 
25               ]
26             }
27           ]
28         },
30         Node 
31         {
32           core MultiCore
33           {
34             cores
35             [
36               Group {}
37               USE GlobalEffect1
38               USE GlobalEffect2
39             ]
40           }
42           children
43           [
44             DEF SceneRoot Node 
45             {
46               core MultiCore
47               {
48                 cores
49                 [
50                   Group {}
51                   USE SceneEffect1
52                   USE SceneEffect2
53                   USE SceneEffect3
54                   USE SceneEffect4
55                   USE SceneEffect5
56                   USE SceneEffect6
57                   USE SceneEffect7
58                 ]
59               }
61               children
62               [
63                 DEF ZLight Node
64                 {
65                   core DirectionalLight
66                   {
67                     ambient    0.24 0.24 0.24 1.0
68                     diffuse    0.80 0.80 0.80 1.0
69                     direction  0.0 0.0 1.0
70                     on         TRUE
71                     beacon     USE CameraRoot
72                   }
73                   children
74                   [
75                     DEF ModelRoot Node
76                     {
77                       core Group {}
78                     }
79                   ]
80                 }
81               ]
82             }
83           ]
84         }
85       ] 
86     }
88     DEF PerspCamGL PerspectiveCamera
89     {
90       near   0.1
91       far    20000.0
92       fov    60.0
94       beacon USE CameraRoot
95     }
96   ]
98   drawManager DEF DrawManager CSMDrawManager
99   {
100         parallel TRUE
102         syncBarrierName "drawSyncBarrier"
103     swapBarrierName "drawSwapBarrier"
105     drawer
106     [
107       CSMDrawer
108       {
109         aspect Drawer0Aspect
111         windows
112         [
113            DEF MainWindow CSMNativeWindow
114            {
115              requestSamples 4
116              enableFSAA     TRUE
118              size 300 300
119              position 200, 200
120              decorEnabled TRUE
122              viewports
123              [
124                CSMViewport
125                {
126                  root       USE RootNode
127                  camera     USE PerspCamGL
128                  background USE BGnd
130                  foregrounds
131                  [
132                  ]
133                }
134              ]
135            }
136         ]  
137       }
139       CSMDrawer
140       {
141         aspect Drawer1Aspect
143         windows
144         [
145            DEF MainWindow1 CSMNativeWindow
146            {
147              requestSamples 4
148              enableFSAA     TRUE
150              size 300 300
151              position 600, 200
152              decorEnabled TRUE
154              viewports
155              [
156                CSMViewport
157                {
158                  root       USE RootNode
159                  camera     USE PerspCamGL
160                  background USE BGnd
162                  foregrounds
163                  [
164                  ]
165                }
166              ]
167            }
168         ]  
169       }
171       CSMDrawer
172       {
173         aspect Drawer2Aspect
175         windows
176         [
177            DEF MainWindow1 CSMNativeWindow
178            {
179              requestSamples 4
180              enableFSAA     TRUE
182              size 300 300
183              position 1000, 200
184              decorEnabled TRUE
186              viewports
187              [
188                CSMViewport
189                {
190                  root       USE RootNode
191                  camera     USE PerspCamGL
192                  background USE BGnd
194                  foregrounds
195                  [
196                  ]
197                }
198              ]
199            }
200         ]  
201       }
203       CSMDrawer
204       {
205         aspect Drawer3Aspect
207         windows
208         [
209            DEF MainWindow1 CSMNativeWindow
210            {
211              requestSamples 4
212              enableFSAA     TRUE
214              size 300 300
215              position 1400, 200
216              decorEnabled TRUE
218              viewports
219              [
220                CSMViewport
221                {
222                  root       USE RootNode
223                  camera     USE PerspCamGL
224                  background USE BGnd
226                  foregrounds
227                  [
228                  ]
229                }
230              ]
231            }
232         ]  
233       }
234     ]
235   }