leaningtech-dev team mailing list archive
-
leaningtech-dev team
-
Mailing list archive
-
Message #00395
Re: [Question #525419]: Problems creating WebGl uniform from array
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.