Merge pull request #628 from mp3butcher/patch-12

osgdrawinstanced: add version and required extension to vertex shader
This commit is contained in:
OpenSceneGraph git repository 2018-10-02 10:50:32 +01:00 committed by GitHub
commit 3d3c7f9940
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -59,6 +59,8 @@ createStateSet()
// render each instance uniquely. gl_InstanceID will be in the range
// 0 to numInstances-1 (1023 in our case).
std::string vertexSource =
"#version 120\n"
"#extension GL_ARB_draw_instanced : enable\n"
"uniform sampler2D osgLogo; \n"
"uniform float osg_SimulationTime; \n"