mirror of https://github.com/axmolengine/axmol.git
commit
1aa95a21c5
|
@ -269,8 +269,7 @@ void Particle3DModelRender::render(Renderer* renderer, const Mat4 &transform, Pa
|
|||
for (auto iter : activeParticleList)
|
||||
{
|
||||
auto particle = iter;
|
||||
q *= particle->orientation;
|
||||
Mat4::createRotation(q, &rotMat);
|
||||
Mat4::createRotation(q * particle->orientation, &rotMat);
|
||||
sclMat.m[0] = particle->width / _spriteSize.x;
|
||||
sclMat.m[5] = particle->height / _spriteSize.y;
|
||||
sclMat.m[10] = particle->depth / _spriteSize.z;
|
||||
|
|
|
@ -470,8 +470,7 @@ void PUParticle3DModelRender::render( Renderer* renderer, const Mat4 &transform,
|
|||
for (auto iter : activeParticleList)
|
||||
{
|
||||
auto particle = static_cast<PUParticle3D *>(iter);
|
||||
q *= particle->orientation;
|
||||
Mat4::createRotation(q, &rotMat);
|
||||
Mat4::createRotation(q * particle->orientation, &rotMat);
|
||||
sclMat.m[0] = particle->width / _spriteSize.x;
|
||||
sclMat.m[5] = particle->height / _spriteSize.y;
|
||||
sclMat.m[10] = particle->depth / _spriteSize.z;
|
||||
|
|
Loading…
Reference in New Issue