History

Merge branch 'master' of https://github.com/highfidelity/hifi into tot

Sam Gateau committed 11 years ago

Commit 7daff182 parents 764ad72 32f60c493 files · +1060 −389Browse files

Showing the changes to interface/src/renderer/Model.cpp (1 of 93 files). Show all

Unified · Split

interface/src/renderer/Model.cpp+2−2
@@ -1424,7 +1424,7 @@ void Model::inverseKinematics(int endIndex, glm::vec3 targetPosition, const glm: · 1423 unmodified lines
14241424 centerOfMass += _jointStates[massIndex].getPosition() - pivot;
14251425 }
14261426 // the gravitational effect is a rotation that tends to align the two cross products
1427− const glm::vec3 worldAlignment = glm::vec3(0.0f, -1.f, 0.0f);
1427+ const glm::vec3 worldAlignment = glm::vec3(0.0f, -1.0f, 0.0f);
14281428 glm::quat gravityDelta = rotationBetween(glm::cross(centerOfMass, leverArm),
14291429 glm::cross(worldAlignment, leverArm));
14301430
@@ -2430,7 +2430,7 @@ int Model::renderMeshesFromList(QVector<int>& list, gpu::Batch& batch, RenderMod · 999 unmodified lines
24302430 GLBATCH(glMaterialfv)(GL_FRONT, GL_AMBIENT, (const float*)&diffuse);
24312431 GLBATCH(glMaterialfv)(GL_FRONT, GL_DIFFUSE, (const float*)&diffuse);
24322432 GLBATCH(glMaterialfv)(GL_FRONT, GL_SPECULAR, (const float*)&specular);
2433− GLBATCH(glMaterialf)(GL_FRONT, GL_SHININESS, (part.shininess > 128.f ? 128.f: part.shininess));
2433+ GLBATCH(glMaterialf)(GL_FRONT, GL_SHININESS, (part.shininess > 128.0f ? 128.0f: part.shininess));
24342434
24352435 Texture* diffuseMap = networkPart.diffuseTexture.data();
24362436 if (mesh.isEye && diffuseMap) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t