Merge branch 'master' of https://github.com/worklist/hifi into particle_voxel_collisions

This commit is contained in:
ZappoMan 2013-12-12 17:52:33 -08:00
commit f94e000e6b
4 changed files with 4 additions and 4 deletions

View file

@ -2923,6 +2923,7 @@ void Application::updateShadowMap() {
glTranslatef(translation.x, translation.y, translation.z);
renderAvatars(true);
_particles.render();
glPopMatrix();

View file

@ -377,7 +377,7 @@ void Hand::render( bool isMine) {
}
// Render toy ball
if (isMine) {
if (isMine && _hasToyBall) {
glPushMatrix();
glColor3f(1, 0, 0);
glTranslatef(_toyBallPosition.x, _toyBallPosition.y, _toyBallPosition.z);

View file

@ -894,7 +894,6 @@ int Octree::encodeTreeBitstreamRecursion(OctreeElement* node,
unsigned char childrenExistInTreeBits = 0;
unsigned char childrenExistInPacketBits = 0;
unsigned char childrenColoredBits = 0;
const int BYTES_PER_COLOR = 3;
// Make our local buffer large enough to handle writing at this level in case we need to.
LevelDetails thisLevelKey = packetData->startLevel();

View file

@ -57,7 +57,7 @@ public:
const glm::vec3& getPosition() const { return _position; }
const rgbColor& getColor() const { return _color; }
xColor getColor() { return { _color[RED_INDEX], _color[GREEN_INDEX], _color[BLUE_INDEX] }; }
xColor getColor() { xColor color = { _color[RED_INDEX], _color[GREEN_INDEX], _color[BLUE_INDEX] }; return color; }
float getRadius() const { return _radius; }
const glm::vec3& getVelocity() const { return _velocity; }
const glm::vec3& getGravity() const { return _gravity; }
@ -144,4 +144,4 @@ private:
};
#endif /* defined(__hifi__Particle__) */
#endif /* defined(__hifi__Particle__) */