Re: [osg-users] osg::PPU , Texture unit associated with depth buffer

2012-10-04 Thread Sergey Polischuk
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.

[osg-users] osg::PPU , Texture unit associated with depth buffer

2012-10-03 Thread Peterakos
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.