2013-02-18 81 views
1

我的目标在下面的情况:是否可以在操作之间设置GLSL变量?

bind shader 
set uniform variable 
..draw box.. 
set uniform variable to different value 
..draw another box, with the new variable applied in the vertex shader.. 

是否有可能设置GLSL变量操作之间?

+0

我不明白这个问题。听起来好像你问的是在命令A之后发出的命令B是否会使用由命令A设置的数据。但是[这似乎太明显而无法提问](http://www.opengl.org/wiki/Memory_Model)。 – 2013-02-19 00:56:35

回答

0

是的,您可以在编译后自由设置制服,并将设置与绘制调用混合。

相关问题