Thanks for your prompt reply on this, I hadn't realized that I have to
declare the uniform. Works a treat now.
Regards,
Kim.
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mike
Weiblen
Sent: 26 October 2007 08:07
To: OpenSceneGraph Users
Subject: Re: [osg-users] OSG Preset Uniforms GLSL
Hi,
I just tested osg_ViewMatrix on OSG 2.2 win32 binaries using
glsl_dataflag.osg and drawtext4.frag from osgToy, and yes it does
continue
to work.
While osg_ViewMatrix is preset by OSG, you do still have to declare it
in
your shader (eg uniform mat4 osg_ViewMatrix), unlike the gl_* presets.
Turn up the OSG notify level, are you getting any infologs during
compile/link?
-- mew
On Thu, October 25, 2007 10:56, Kim C Bale wrote:
> Hi all,
>
> Is osg_ViewMatrix still supported as a preset uniform? I can't seem to
> get it to recognise it within my glsl shader. Is it purely a driver
> issue with my nv7800GS or do I need to do something special to enable
me
> to use it?
>
> Thanks,
>
> Kim.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or
g
*****************************************************************************************
To view the terms under which this email is distributed, please go to
http://www.hull.ac.uk/legal/email_disclaimer.html
*****************************************************************************************
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org