Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Sparky-core/src/sp/maths/mat4.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "sp/sp.h"
#include "sp/sp.h"
#include "mat4.h"

#include <sstream>
Expand Down Expand Up @@ -245,7 +245,7 @@ namespace sp { namespace maths {

mat4 mat4::Perspective(float fov, float aspectRatio, float near, float far)
{
mat4 result(1.0f);
mat4 result(0.0f);

float q = 1.0f / tan(toRadians(0.5f * fov));
float a = q / aspectRatio;
Expand Down Expand Up @@ -388,4 +388,4 @@ namespace sp { namespace maths {
return result.str();
}

} }
} }