greggman / tdl

A low-level WebGL library
283 stars 39 forks source link

Particle.js #6

Closed fazeaction closed 10 years ago

fazeaction commented 10 years ago

Seems there is a typo in particle.js file at line 1129:

tdl.fast.matrix4.mul.mulMatrixMatrix4(worldViewProjection, tmpWorld, viewProjection);

I think, the correct is:

tdl.fast.matrix4.mul(worldViewProjection, tmpWorld, viewProjection);

Is this ok?. Thanks for your time!

greggman commented 10 years ago

That that looks like a typo. Did your change work?

fazeaction commented 10 years ago

Yes, now no error with oriented particles. :-D. I'm using part of the code from this example > https://www.khronos.org/registry/webgl/sdk/demos/google/particles/

fazeaction commented 10 years ago

Better with a basic example > https://dl.dropboxusercontent.com/u/106524784/tdl/example/index.html

greggman commented 10 years ago

thanks! I pushed new version with your fix