Login  Register

Re: Uniform Buffers mapping and size

Posted by jmaasing on Jun 13, 2013; 5:56pm
URL: https://forum.jogamp.org/Uniform-Buffers-mapping-and-size-tp4029403p4029404.html

A simple workaround for me was to not use structs in the shader but use simple types, being a newbie I didn't want to tangle with using buffers for the uniforms.

like shader: uniform float time ;
and then: gl.glUniform1f(uniformId, time);

But I'd be interested to learn how to do that struct/buffer thingy :-)