Cleanup encore.

This commit is contained in:
MarcEricMartel 2021-12-03 11:53:53 -05:00
parent ebc8ed1f56
commit a75b1c97cb

View File

@ -280,34 +280,28 @@ void World::RenderWorld(int& rendercount, int& badhitcount, Player& player, Tran
int echantillons; int echantillons;
if (dist > VIEW_DISTANCE * .375f) { if (dist > VIEW_DISTANCE * .375f) {
angle.x = direct.z + direct.x;
angle.z = direct.z - direct.x;
sinus = .01745240643; // sin(1 degré) sinus = .01745240643; // sin(1 degré)
cosinus = .99984769515; // cos(1 degré) cosinus = .99984769515; // cos(1 degré)
echantillons = 90; echantillons = 90;
} }
else if (dist > VIEW_DISTANCE * .5f) { else if (dist > VIEW_DISTANCE * .5f) {
angle.x = direct.z + direct.x;
angle.z = direct.z - direct.x;
sinus = .0261769483; sinus = .0261769483;
cosinus = .99965732497; cosinus = .99965732497;
echantillons = 60; echantillons = 60;
} }
else if (dist > VIEW_DISTANCE * .625f) { else if (dist > VIEW_DISTANCE * .625f) {
angle.x = direct.z + direct.x;
angle.z = direct.z - direct.x;
sinus = .0348994967; sinus = .0348994967;
cosinus = .99939082701; cosinus = .99939082701;
echantillons = 45; echantillons = 45;
} }
else { else {
angle.x = direct.z + direct.x;
angle.z = direct.z - direct.x;
sinus = .05233595624; sinus = .05233595624;
cosinus = .99862953475; cosinus = .99862953475;
echantillons = 30; echantillons = 30;
} }
angle.x = direct.z + direct.x;
angle.z = direct.z - direct.x;
angle.y = 0; angle.y = 0;
angle.Normalize(); angle.Normalize();