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