Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ find_package(OpenGL REQUIRED)

# Find OpenSceneGraph packages for reference
# set preference for using modern OpenGL library.
find_package(OpenSceneGraph REQUIRED COMPONENTS osgDB osgTerrain osgUtil osgGA osgViewer)
find_package(OpenSceneGraph REQUIRED COMPONENTS osgDB osgTerrain osgUtil osgGA osgViewer osgText)

if (VULKAN_SDK)
set(ENV{VULKAN_SDK} ${VULKAN_SDK})
Expand Down
1 change: 1 addition & 0 deletions applications/vsgwithosg/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ target_link_libraries(vsgwithosg
${OSGUTIL_LIBRARIES}
${OSGDB_LIBRARIES}
${OSGGA_LIBRARIES}
${OSGTEXT_LIBRARIES}
${OSGVIEWER_LIBRARIES}
${OPENGL_LIBRARIES}
)
2 changes: 1 addition & 1 deletion data/shaders/fbxshader.vert
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ void main()
#endif
#ifdef VSG_LIGHTING
vec4 lpos = /*osg_LightSource.position*/ vec4(0.0, 0.25, 1.0, 0.0);
#ifdef VSG_NORMAL_MAP
#if defined(VSG_NORMAL_MAP) && defined(VSG_TANGENT)
vec3 t = (modelView * vec4(osg_Tangent.xyz, 0.0)).xyz;
vec3 b = cross(n, t);
vec3 dir = -vec3(modelView * vec4(osg_Vertex, 1.0));
Expand Down
2 changes: 1 addition & 1 deletion src/osg2vsg/shaders/fbxshader_vert.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ void main()
#endif
#ifdef VSG_LIGHTING
vec4 lpos = /*osg_LightSource.position*/ vec4(0.0, 0.25, 1.0, 0.0);
#ifdef VSG_NORMAL_MAP
#if defined(VSG_NORMAL_MAP) && defined(VSG_TANGENT)
vec3 t = (modelView * vec4(osg_Tangent.xyz, 0.0)).xyz;
vec3 b = cross(n, t);
vec3 dir = -vec3(modelView * vec4(osg_Vertex, 1.0));
Expand Down