I chose the following solution: by knowing that binding program 0 (zero)
doesn't give 100% correct results with all drivers, I created a fragment
program that simply passes the incoming color to the output. Like this I was
sure that at least the vertex part of the pipeline is using fixed
Hi Robert and all
I have a main shader for my scene graph. Then I have some parts of my loaded
models that I want to explicitely render with the fixed-function-pipeline (FFP).
In osg 3.1.5 I was able to modify a particular stateset by writing
HI Daniel,
you can set an empty Program in the stateset instead of disabling it. This
way the subgraph will be rendered using the fixed pipe-line. Like
stateset-setAttributeAndModes( new osg::Program, on, override, whatever
)
Nick
On Fri, Feb 7, 2014 at 1:14 PM, Daniel Schmid
I know setting an empty program is the way this used to be done. And it seemed
to work for some time. But in my case it doens't.
In the apply method of osg::Program, a call to glUseProgram(0) is issued when
the program object is empty.
According to
4 matches
Mail list logo