changed: gcc8 base update
[opensg.git] / Examples / CSM / Common / system-native-tiled.osg
blob0d8936e92e3fcbf32e4386b1ecb5c32049019865
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     drawer
94     [
95       CSMDrawer
96       {
97         windows
98         [
99            DEF MainWindow CSMNativeWindow
100            {
101 #             ignoreExtensions [ "ALL" ]
102 #             ignoreExtensions [ "GL_ARB_framebuffer_object",
103 #                                "GL_ARB_geometry_shader4 GL_ARB_multitexture" ]
104 #             requestMajor 3
105 #             requestMinor 0
107 #             enableForwardCompatContext TRUE
108 #             enableDebugContext         TRUE
110              partitionDrawMode 0x0002
112              requestSamples 4
113              enableFSAA     TRUE
115              size 512 512
116              position 200, 200
117              decorEnabled TRUE
119              renderOptions DEF WinRenderOpts RenderOptions
120              {
121              }
123              viewports
124              [
125                CSMViewport
126                {
127                  root       USE RootNode
128                  camera     TileCameraDecorator
129                  {
130                    decoratee USE PerspCamGL
131                    
132                    left   0.0
133                    right  0.3
134                    bottom 0.0
135                    top    1.0
136                    
138                    fullWidth  512
139                    fullHeight 512
140                  }
142                  background USE BGnd1
144                  leftBottom 0.0 0.0
145                  rightTop   0.4 1.0
147                  foregrounds
148                  [
149                    USE FG0
150                  ]
151                }
153                CSMViewport
154                {
155                  root       USE RootNode
156                  camera     TileCameraDecorator
157                  {
158                    decoratee USE PerspCamGL
159                    
160                    left   0.6
161                    right  1.0
162                    bottom 0.0
163                    top    1.0
164                    
166                    fullWidth  512
167                    fullHeight 512
168                  }
170                  background USE BGnd1
172                  leftBottom 0.6 0.0
173                  rightTop   1.0 1.0
175                  foregrounds
176                  [
177                  ]
178                }
179              ]
180            }
181         ]  
182       }
183     ]
184   }