leaningtech-dev team mailing list archive
-
leaningtech-dev team
-
Mailing list archive
-
Message #00396
Re: [Question #525419]: Problems creating WebGl uniform from array
Question #525419 on Cheerp changed:
https://answers.launchpad.net/cheerp/+question/525419
Johan Axelsson gave more information on the question:
Thanks,
works perfect :/)
Regards Johan
--
JA MarinTech
Johan Axelsson
M.Sc. Naval Architect
http://www.marintech.se
"For every complex problem, there is a solution that is simple, neat,
and wrong." H.L. Mencken
On 2017-03-04 12:43, Alessandro Pignotti wrote:
> Your question #525419 on Cheerp changed:
> https://answers.launchpad.net/cheerp/+question/525419
>
> Alessandro Pignotti posted a new comment:
> I would need a minimal example to understand the problem, but first try
> this
>
> mpGL->uniform4fv(muColor,
> cheerp::MakeTypedArray(mClrSrf.data(),4*sizeof(float)));
>
> the second parameter is the size in bytes you want to use and avoids
> passing extra data to the uniform call
You received this question notification because your team Leaningtech
Team is an answer contact for Cheerp.