Hi Matthew,
Now, you can't change a uniform during a single OpenGL traversal, of course (i.e.,
between glBegin() and glEnd()), but there is nothing stopping you from changing a uniform at any
other time. If a single object is broken into several glBegin()/glEnd() sections for a
given
I want to change the value of a uniform for the traversal of a
subgraph. A the moment I am not sure how to do this. Does anyone have
any suggestions on the easiest way to do this?
Thanks,
Roger
___
osg-users mailing list
Hi Roger,
Do you mean you want a uniform to hold multiple values, one for each
subgraph it's associated with? If so this isn't possible, if you want
different values then you'll need to use multiple Uniforms, perhaps
dynamically deciding which StateSet to use for each subgraph to be
able to pass
Robert Osfield wrote:
Hi Roger,
Do you mean you want a uniform to hold multiple values, one for each
subgraph it's associated with? If so this isn't possible, if you want
different values then you'll need to use multiple Uniforms, perhaps
dynamically deciding which StateSet to use for each
Hi Roger,
I was
wondered if I could do something like attaching a uniform of the same
name to the stateset of that node. I must admit I could not think of an
easy way of doing it!
Well, you can do that! Different statesets can have uniforms of the same
name, same type but different values
Jean-Sbastien Guay wrote:
Hi
Roger,
I was wondered if I could do something like
attaching a uniform of the same name to the stateset of that node. I
must admit I could not think of an easy way of doing it!
Well, you can do that! Different statesets can have uniforms of the
6 matches
Mail list logo