From 6e562f51c7b1620956b32a4d427cbe6415e99d16 Mon Sep 17 00:00:00 2001 From: MarcEricMartel <74071476+MarcEricMartel@users.noreply.github.com> Date: Mon, 6 Dec 2021 18:15:23 -0500 Subject: [PATCH] Party! --- SQCSim2021/world.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/SQCSim2021/world.cpp b/SQCSim2021/world.cpp index f7cf1e0..6d33a5b 100644 --- a/SQCSim2021/world.cpp +++ b/SQCSim2021/world.cpp @@ -292,7 +292,7 @@ void World::RenderWorld(int& rendercount, int& badhitcount, Player& player, Tran direct.Normalize(); pos.y = 1; - static Vector3f renderManifest[VIEW_DISTANCE * 4]; + static Vector3f renderManifest[VIEW_DISTANCE * 4]; // Nombre de Chunks maximal à être rendus. //for (int dist = VIEW_DISTANCE; dist >= 0; dist -= CHUNK_SIZE_X) { for (int dist = 0; dist <= VIEW_DISTANCE; dist += CHUNK_SIZE_X) { @@ -305,17 +305,17 @@ void World::RenderWorld(int& rendercount, int& badhitcount, Player& player, Tran cosinus = .99996192306; // cos(1/2 degré) echantillons = 180; } - else if (dist > VIEW_DISTANCE * .5f) { + else if (dist > VIEW_DISTANCE * .4f) { sinus = .01151891831f; // sin(2/3 degré) cosinus = .99993365506; // cos(2/3 degré) echantillons = 120; } - else if (dist > VIEW_DISTANCE * .325f) { + else if (dist > VIEW_DISTANCE * .3f) { sinus = .01745240643; // sin(1 degré) cosinus = .99984769515; // cos(1 degré) echantillons = 90; } - else if (dist > VIEW_DISTANCE * .25f) { + else if (dist > VIEW_DISTANCE * .2f) { sinus = .0261769483; cosinus = .99965732497; echantillons = 60;