Using new SimpleMathV2

simple_math_single_header
Martin Felis 2018-11-08 23:02:57 +01:00
parent 88898dedfc
commit 4e1687d80b
2 changed files with 1481 additions and 1110 deletions

File diff suppressed because it is too large Load Diff

View File

@ -284,9 +284,9 @@ void Light::UpdateSplits(const Camera& camera) {
Matrix44f light_matrix = LookAt (mPosition, mPosition + mDirection, Vector3f (0.f, 1.0f, 0.0f)); Matrix44f light_matrix = LookAt (mPosition, mPosition + mDirection, Vector3f (0.f, 1.0f, 0.0f));
Matrix44f light_matrix_inv = light_matrix.inverse(); Matrix44f light_matrix_inv = light_matrix.inverse();
mShadowSplits[0] = near + length * 0.02; mShadowSplits[0] = near + length * 0.05;
mShadowSplits[1] = near + length * 0.1; mShadowSplits[1] = near + length * 0.15;
mShadowSplits[2] = near + length * 0.3; mShadowSplits[2] = near + length * 0.4;
mShadowSplits[3] = far; mShadowSplits[3] = far;
float prev_split_far = near; float prev_split_far = near;