Hi
There are not only explicit texture bindings, but also implicit ones, which
passed from units parents. If your unit added to other ppu units, it uses
theirs output as input textures in order. There are also interfaces to bind
other unit output to uniform IIRC setInputToUniform call
Cheers.
> Hello
>
> In osgppu_ssao project in simple.h file, there are the following lines:
>
> shader->add("originalDepthTexture", osg::Uniform::SAMPLER_2D);
> shader->set("originalDepthTexture", 1);
>
> Where is the depth texture associated with texture unit 1 ?
> i couldnt find it anywhere.
>
> thnx.
_______________________________________________osg-users mailing
[email protected]http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
--
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org