Loading...

mac-opengl@lists.apple.com

[Prev] Thread [Next]  |  [Prev] Date [Next]

Re: Weird figures with OpenGL 3.2 and Intel HD3000 (Uniform question) Alexander Obuschenko Thu Feb 02 03:09:40 2012

You can use uniform block http://www.opengl.org/wiki/Uniform_Buffer_Object

On Jan 19, 2012, at 8:06 PM, Vincent Habchi wrote:

>> But I will follow Keith suggestion now, compile three shaders and swap them 
>> during the drawing operation. Let’s see what we’ll get then…
> 
> Okay, so now I have four different GL programs. Some of them share the same 
> uniform variables: Is there a way to set the uniform locations so that, e.g. 
> the uniform variable "V" in program P1 gets the same location as the uniform 
> variable "V" in program P2 (and thus I can use a single Glint variable to 
> store "V"'s location)?
> 
> Thanks a lot,
> Vincent _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Mac-opengl mailing list      ([EMAIL PROTECTED])
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/mac-opengl/alexander.obuschenko%40gmail.com
> 
> This email sent to [EMAIL PROTECTED]

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Mac-opengl mailing list      ([EMAIL PROTECTED])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/mac-opengl/alexiscircle%40gmail.com

This email sent to [EMAIL PROTECTED]