Opengl统一行为(Opengl uniform behaviour)
我注意到一些在opengl文档中没有很好解释的东西。 如果我错了,请纠正我。
如果程序不是opengl当时正在使用的程序,则无法设置统一的值。 那会产生错误。
如果在程序A中设置了统一的值,则切换到程序B,然后切换回程序A,该值保持不变。 这可靠吗?
无法为当时未使用的程序设置统一值。 有解决方法吗?
I've noticed some things that aren't well explained in the opengl docs. Please correct me if I'm wrong.
You can't set the value of a uniform if the program isn't the one that opengl is using at that moment. That will generate an error.
If you set the value of a uniform in program A, then switch to program B, then switch back to program A, the value stays. Is this reliable?
There is no way to set a uniform value to a program that isn't being used at that moment. Is there a workaround?
更多推荐
发布评论