Serdar, 

Just a heads up, I updated the ShaderProgram class with __setitem__ and 
__getitem__ "magic" methods. So far this is only working with Uniforms, but 
if it makes sense I plan to expand it to handle other types. I really liked 
how the Vispy Gloo library made use of these methods for it's program 
class, so I wanted to add them as well. 

Get the "zoom" uniform value:
current_zoom = program['zoom']

Set the "zoom" uniform value:
program['zoom'] = 5.0



On Tuesday, July 5, 2016 at 10:11:59 AM UTC+9, Serdar Yegulalp wrote:
>
> I'll want to take a look at this and see how it works out, as I have a 
> game that uses shaders pretty extensively and would make a good test case.
>
>  I do agree that the 2nd of those options seems the better in the long run!
>

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to