root/OpenSceneGraph/trunk/src/osgUtil/CMakeLists.txt @ 9940

Revision 9940, 3.0 kB (checked in by robert, 6 years ago)

From Maciej Krol, "As promised to Roland I assembled simple shader generator. ShaderGenVisitor? converts accumulated fixed function pipeline state sets to ones with shader programs. Generated state sets are attached to geometries and stored in ShaderGenCache? for reuse.

Very simple cases of state configuration are supported (all the ones I really need):
- single per pixel not attenuated non spot light source ON/OFF
- exp2 fog ON/OFF
- diffuse texture in rgb + optional specular gloss in alpha (Texture unit 0) ON/OFF
- normal map texture (Texture unit 1 and Tangent in VertexAttribArray? 6) ON/OFF
- blending and alpha testing (not in shader pipeline)

To view fixed function pipeline files and paged databases simply run >osgshadergen myfile.osg"

  • Property svn:eol-style set to native
Line 
1
2# FIXME: For OS X, need flag for Framework or dylib
3IF   (DYNAMIC_OPENSCENEGRAPH)
4    ADD_DEFINITIONS(-DOSGUTIL_LIBRARY)
5ELSE (DYNAMIC_OPENSCENEGRAPH)
6    ADD_DEFINITIONS(-DOSG_LIBRARY_STATIC)
7ENDIF(DYNAMIC_OPENSCENEGRAPH)
8
9SET(LIB_NAME osgUtil)
10SET(HEADER_PATH ${OpenSceneGraph_SOURCE_DIR}/include/${LIB_NAME})
11SET(LIB_PUBLIC_HEADERS
12    ${HEADER_PATH}/ConvertVec
13    ${HEADER_PATH}/CubeMapGenerator
14    ${HEADER_PATH}/CullVisitor
15    ${HEADER_PATH}/DelaunayTriangulator
16    ${HEADER_PATH}/DisplayRequirementsVisitor
17    ${HEADER_PATH}/DrawElementTypeSimplifier
18    ${HEADER_PATH}/EdgeCollector
19    ${HEADER_PATH}/Export
20    ${HEADER_PATH}/GLObjectsVisitor
21    ${HEADER_PATH}/HalfWayMapGenerator
22    ${HEADER_PATH}/HighlightMapGenerator
23    ${HEADER_PATH}/IntersectionVisitor
24    ${HEADER_PATH}/IntersectVisitor
25    ${HEADER_PATH}/IncrementalCompileOperation
26    ${HEADER_PATH}/LineSegmentIntersector
27    ${HEADER_PATH}/OperationArrayFunctor
28    ${HEADER_PATH}/Optimizer
29    ${HEADER_PATH}/PlaneIntersector
30    ${HEADER_PATH}/PolytopeIntersector
31    ${HEADER_PATH}/PositionalStateContainer
32    ${HEADER_PATH}/PrintVisitor
33    ${HEADER_PATH}/ReflectionMapGenerator
34    ${HEADER_PATH}/RenderBin
35    ${HEADER_PATH}/RenderLeaf
36    ${HEADER_PATH}/RenderStage
37    ${HEADER_PATH}/ReversePrimitiveFunctor
38    ${HEADER_PATH}/SceneView
39    ${HEADER_PATH}/SceneGraphBuilder
40    ${HEADER_PATH}/ShaderGen
41    ${HEADER_PATH}/Simplifier
42    ${HEADER_PATH}/SmoothingVisitor
43    ${HEADER_PATH}/StateGraph
44    ${HEADER_PATH}/Statistics
45    ${HEADER_PATH}/TangentSpaceGenerator
46    ${HEADER_PATH}/Tessellator
47    ${HEADER_PATH}/TransformAttributeFunctor
48    ${HEADER_PATH}/TransformCallback
49    ${HEADER_PATH}/TriStripVisitor
50    ${HEADER_PATH}/UpdateVisitor
51    ${HEADER_PATH}/Version
52)
53
54ADD_LIBRARY(${LIB_NAME}
55    ${OPENSCENEGRAPH_USER_DEFINED_DYNAMIC_OR_STATIC}
56    ${LIB_PUBLIC_HEADERS}
57    CubeMapGenerator.cpp
58    CullVisitor.cpp
59    DelaunayTriangulator.cpp
60    DisplayRequirementsVisitor.cpp
61    DrawElementTypeSimplifier.cpp
62    EdgeCollector.cpp
63    GLObjectsVisitor.cpp
64    HalfWayMapGenerator.cpp
65    HighlightMapGenerator.cpp
66    IntersectionVisitor.cpp
67    IntersectVisitor.cpp
68    IncrementalCompileOperation.cpp
69    LineSegmentIntersector.cpp
70    Optimizer.cpp
71    PlaneIntersector.cpp
72    PolytopeIntersector.cpp
73    PositionalStateContainer.cpp
74    PrintVisitor.cpp
75    RenderBin.cpp
76    RenderLeaf.cpp
77    RenderStage.cpp
78    ReversePrimitiveFunctor.cpp
79    SceneView.cpp
80    ShaderGen.cpp
81    Simplifier.cpp
82    SmoothingVisitor.cpp
83    SceneGraphBuilder.cpp
84    StateGraph.cpp
85    Statistics.cpp
86    TangentSpaceGenerator.cpp
87    Tessellator.cpp
88    TransformAttributeFunctor.cpp
89    TransformCallback.cpp
90    TriStrip_graph_array.h
91    TriStrip_heap_array.h
92    TriStrip_tri_stripper.cpp
93    TriStrip_tri_stripper.h
94    TriStripVisitor.cpp
95    UpdateVisitor.cpp
96    Version.cpp
97    ${OPENSCENEGRAPH_VERSIONINFO_RC}
98)
99
100LINK_INTERNAL(${LIB_NAME}     
101    osg
102    OpenThreads
103)
104LINK_CORELIB_DEFAULT(${LIB_NAME})
105
106INCLUDE(ModuleInstall OPTIONAL)
Note: See TracBrowser for help on using the browser.