[osg-users] How to set OSG's OpenGL context version to 4.1?

2015-05-09 Thread Hayward Park
I am having trouble compiling GLSL shaders that are #version 140 or higher. Ideally, I'd like to compile GLSL shaders that are #version 410. I believe to do this, OSG should create an OpenGL context that is 4.1, but everything I've been trying has been creating a (very old!) 2.1 context. Please

Re: [osg-users] Wrong understanding of tangent space and world coordinates?

2015-05-09 Thread Ulrich Hertlein
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi Andreas, On 6/05/2015 13:28, Andreas Schreiber wrote: If I pass the following vector from osg code to the shader: Code: plane-getOrCreateStateSet()-addUniform(new osg::Uniform(object_position, osg::Vec4(1, -0.25, 1,1))); This vector is