mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 19:04:32 +02:00
merge fix
This commit is contained in:
commit
63243b2e14
4 changed files with 4 additions and 5 deletions
|
@ -2920,6 +2920,7 @@ void Application::updateShadowMap() {
|
|||
glTranslatef(translation.x, translation.y, translation.z);
|
||||
|
||||
renderAvatars(true);
|
||||
_particles.render();
|
||||
|
||||
glPopMatrix();
|
||||
|
||||
|
|
|
@ -377,8 +377,7 @@ void Hand::render( bool isMine) {
|
|||
}
|
||||
|
||||
// Render toy ball
|
||||
|
||||
if (isMine && _toyBallShouldRender) {
|
||||
if (isMine && _hasToyBall) {
|
||||
glPushMatrix();
|
||||
glColor3f(1, 0, 0);
|
||||
glTranslatef(_toyBallPosition.x, _toyBallPosition.y, _toyBallPosition.z);
|
||||
|
|
|
@ -887,7 +887,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();
|
||||
|
|
|
@ -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__) */
|
||||
|
|
Loading…
Reference in a new issue