[osg-users] osg 3.3.8 and SAMPLER_2D uniforms
Robert Osfield
robert.osfield at gmail.com
Mon May 4 06:05:20 PDT 2015
Hi Nick,
I don't recall an specific changes relating to Uniforms between 3.3.7
and 3.3.8. Perhaps it's just an error elsewhere that shows itself in
different ways on different systems, perhaps an uninitialized variable
or a shader that isn't valid GLSL but different compilers are doing
different things with it.
Without an example illustrating the problem there isn't anything more I can do.
Robert.
Robert.
On 4 May 2015 at 12:20, Trajce Nikolov NICK
<trajce.nikolov.nick at gmail.com> wrote:
> Hi Robert,
>
> after I upgraded to 3.3.8 I am experiencing issues with using multiple
> textures in a StateSet and setting uniforms. In 3.3.7 all works fine.
>
> The issue:
>
> uniform sampler2D texture; // in the shader
>
> In the code:
>
> _ss->addUniform(new
> osg::Uniform(osg::Uniform::SAMPLER_2D,"texture",(int)slot) ...
>
>
> uniform this causes the model on MacOSX to turn to black on Windows the
> model to disappear.
>
>
> The working code from 3.3.7 (defining it with osg::Uniform::SAMPLER_2D was
> not working either)
>
>
> _ss->addUniform(new osg::Uniform("texture")aoSlot) ...
>
>
>
>
> Any clue?
>
> Thanks a bunch!
>
> --
> trajce nikolov nick
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
More information about the osg-users
mailing list