Merge branch 'master' of github.com:sippeangelo/Escape-the-Dawn
This commit is contained in:
@@ -95,4 +95,4 @@ void Camera::FarClip(float val)
|
|||||||
{
|
{
|
||||||
m_FarClip = val;
|
m_FarClip = val;
|
||||||
UpdateProjectionMatrix();
|
UpdateProjectionMatrix();
|
||||||
}
|
}
|
||||||
@@ -23,7 +23,7 @@ in VertexData {
|
|||||||
vec3 ShadowCoord;
|
vec3 ShadowCoord;
|
||||||
} Input;
|
} Input;
|
||||||
|
|
||||||
vec3 scene_ambient = vec3(0.98f, 0.95f, 0.8f);
|
vec3 scene_ambient = vec3(0.98, 0.95, 0.7);
|
||||||
|
|
||||||
out vec4 fragmentColor;
|
out vec4 fragmentColor;
|
||||||
|
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ void Systems::PlayerSystem::UpdateEntity(double dt, EntityID entity, EntityID pa
|
|||||||
glm::vec3 Ship_Forward = glm::vec3(glm::vec4(0, 0, 1, 0));
|
glm::vec3 Ship_Forward = glm::vec3(glm::vec4(0, 0, 1, 0));
|
||||||
|
|
||||||
float TurnSpeed = 1.0f;
|
float TurnSpeed = 1.0f;
|
||||||
glm::vec3 Euler = glm::eulerAngles(transform->Orientation);
|
glm::vec3 Euler = glm::degrees(glm::eulerAngles(transform->Orientation));
|
||||||
|
|
||||||
if(input->KeyState[GLFW_KEY_LEFT]) {
|
if(input->KeyState[GLFW_KEY_LEFT]) {
|
||||||
transform->Position -= Ship_Right * (float)dt * (m_PlayerSpeed + Euler.z);
|
transform->Position -= Ship_Right * (float)dt * (m_PlayerSpeed + Euler.z);
|
||||||
|
|||||||
Reference in New Issue
Block a user