Hi Steven,
You're using the logical or operator "||" rather than bitwise or "|". If
any parents of the camera are using the OVERRIDE flag on a shader, this
can cause the problem you describe.
Mark
Steven Powers wrote:
> Let me know if you need more code than this. I can throw together a full
Let me know if you need more code than this. I can throw together a full
executable if it is needed.
So far I've added a camera as a slave camera to the viewer. I have no problems
doing that.
viewer->addSlave(_camera);
Then when I add a shader to the slave camera:
osg::ref_ptr ss = _c
Hi Steven,
On Tue, Apr 22, 2008 at 2:25 PM, Steven Powers <[EMAIL PROTECTED]> wrote:
> When I try to set a shader program on a slave camera through a state set it
> doesn't seem to work.
>
> I've tried removing the camera as a slave, adding the state set, then adding
> the camera as a slave to the
When I try to set a shader program on a slave camera through a state set
it doesn't seem to work.
I've tried removing the camera as a slave, adding the state set, then
adding the camera as a slave to the viewer again.
Is there a fix for this or should I try a different technique to apply a
shad
4 matches
Mail list logo