[GEM-dev] texture coords for glsl

chris clepper cgclepper at gmail.com
Mon Oct 1 16:43:28 CEST 2007


On 10/1/07, marius schebella <marius.schebella at gmail.com> wrote:
>
> I am trying to get more multitexture glsl stuff working. the problem I
> am having right now is that I don't know how to pass the rectangle
> coords of the second texture to the glsl program.


Send the message 'MyTex1 1' to glsl_program and it will set the sampler to
read from the second texture unit.  The sampler texunit is treated like any
variable sent to the shader.  You can name it whatever you want as long as
the right message is given to glsl_program.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/gem-dev/attachments/20071001/0b359bc7/attachment.htm>


More information about the GEM-dev mailing list