changed: gcc8 base update
[opensg.git] / Examples / CSM / Common / system-native-core.osg
blobd744706ce22f1980c4b8e9493d390cd8b06fcf4e
1 #OSG V1.0 
3 ComplexSceneManager
5 #  dumpFrameStart True
7   globals
8   [
9     DEF RootNode Node
10     { 
11       core Group {}
13       children
14       [ 
15         DEF CameraRoot Node
16         {
17           core Transform {}
19           children 
20           [ 
21           ]
22         },
24         DEF GlobalEffectRoot Node
25         {
26           core MultiCore
27           {
28             cores
29             [
30               Group {}
31               USE GlobalEffect1
32               USE GlobalEffect2
33             ]
34           }
36           children
37           [
38             DEF SceneRoot Node 
39             {
40               core MultiCore
41               {
42                 cores
43                 [
44                   Group {}
45                   USE SceneEffect1
46                   USE SceneEffect2
47                   USE SceneEffect3
48                   USE SceneEffect4
49                   USE SceneEffect5
50                   USE SceneEffect6
51                   USE SceneEffect7
52                 ]
53               }
55               children
56               [
57                 DEF ZLight Node
58                 {
59                   core DirectionalLight
60                   {
61                     ambient    0.24 0.24 0.24 1.0
62                     diffuse    0.80 0.80 0.80 1.0
63                     direction  0.0 0.0 1.0
64                     on         TRUE
65                     beacon     USE CameraRoot
66                   }
67                   children
68                   [
69                     DEF ModelRoot Node
70                     {
71                       core Group {}
72                     }
73                   ]
74                 }
75               ]
76             }
78             DEF OffSceneRoot Node
79             {
80               core MultiCore
81               {
82                 cores
83                 [
84                   Group {}
85                   USE OffSceneEffect1
86                   USE OffSceneEffect2
87                   USE OffSceneEffect3
88                   USE OffSceneEffect4
89                   USE OffSceneEffect5
90                   USE OffSceneEffect6
91                   USE OffSceneEffect7
92                 ]
93               }
95               children
96               [
97                 USE OffSceneModelRoot
98               ]           
99             }
100           ]
101         }
102       ] 
103     }
105     DEF PerspCamGL CSMPerspectiveCamera
106     {
107       near   0.1
108       far    20000.0
109       fov    60.0
111       beacon USE CameraRoot
112     }
114   ]
116   drawManager DEF DrawManager CSMDrawManager
117   {
118     drawer
119     [
120       CSMDrawer
121       {
122         windows
123         [
124            DEF MainWindow CSMNativeWindow
125            {
126 #             ignoreExtensions [ "ALL" ]
127 #             ignoreExtensions [ "GL_ARB_framebuffer_object",
128 #                                "GL_ARB_geometry_shader4 GL_ARB_multitexture" ]
129              requestMajor 3
130              requestMinor 0
132 #             enableForwardCompatContext TRUE
133 #             enableDebugContext         FALSE
135              partitionDrawMode 0x0002
137              requestSamples 4
138              enableFSAA     TRUE
140              size 512 512
141              position 200, 200
142              decorEnabled TRUE
144              renderOptions DEF WinRenderOpts RenderOptions
145              {
146                useGLFinish FALSE
147              }
149              viewports
150              [
151                CSMViewport
152                {
153                  root       USE RootNode
154                  camera     USE PerspCamGL
155                  background USE BGnd
157                  foregrounds
158                  [
159                    USE ForeGnd1
160                    USE ForeGnd2
161                    USE ForeGnd3
162                    USE ForeGnd4
164 #                   USE LogoFGnd
165 #                   USE StatFGnd
166                  ]
167                }
168              ]
169            }
170         ]  
171       }
172     ]
173   }