Skip to content

Commit

Permalink
corrected look at update.
Browse files Browse the repository at this point in the history
  • Loading branch information
RicardoEPRodrigues committed Oct 26, 2017
1 parent 09111fb commit 9e8172e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion shaders/Color3D/vertex.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,8 @@ void main(void)

float zMixer = clamp((in_Position).z, 0.3, 1.0);
float xMixer = clamp((in_Position).x, 0.3, 0.5);
ex_Color = vec4(ModelColor.x * zMixer + xMixer, ModelColor.y * zMixer + xMixer, ModelColor.z * zMixer + xMixer, ModelColor.w);
ex_Color = vec4(ModelColor.x * zMixer + xMixer,
ModelColor.y * zMixer + xMixer,
ModelColor.z * zMixer + xMixer,
ModelColor.w);
}
2 changes: 1 addition & 1 deletion src/Tangram3D/CameraController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ namespace ThreeEngine {
Matrix::TranslationMatrix(-lookAt->eye)) * Vector4(lookAt->center);

}
lookAt->Set(lookAt->eye, lookAt->center, lookAt->u);
lookAt->Set(lookAt->eye, lookAt->center, lookAt->up);

previousMouseLocation = mouse;
}
Expand Down

0 comments on commit 9e8172e

Please sign in to comment.