Skip to content

Commit

Permalink
Fixed|Renderer: Model particles not affected by dynamic lights, plus …
Browse files Browse the repository at this point in the history
…cleanup

The particle renderer used the wrong axes when determining the BSP
leaf at the origin of a given particle (Z and Y were swapped).
  • Loading branch information
danij-deng committed Jan 16, 2014
1 parent eeec1ae commit 0a317eb
Show file tree
Hide file tree
Showing 5 changed files with 164 additions and 144 deletions.
1 change: 0 additions & 1 deletion doomsday/client/include/render/rend_particle.h
Expand Up @@ -43,7 +43,6 @@ enum ParticleType
};

DENG_EXTERN_C byte useParticles;
DENG_EXTERN_C int maxParticles;

void Rend_ParticleRegister();

Expand Down
6 changes: 3 additions & 3 deletions doomsday/client/include/world/generator.h
Expand Up @@ -228,11 +228,11 @@ struct Generator

void spinParticle(ParticleInfo &pt);

/**
* A particle may be "projected" onto the floor or ceiling of a sector.
*/
float particleZ(ParticleInfo const &pt) const;

de::Vector3f particleOrigin(ParticleInfo const &pt) const;
de::Vector3f particleMomentum(ParticleInfo const &pt) const;

public:
/**
* Register the console commands, variables, etc..., of this module.
Expand Down

0 comments on commit 0a317eb

Please sign in to comment.