Party!
This commit is contained in:
parent
8debc055ed
commit
6e562f51c7
@ -292,7 +292,7 @@ void World::RenderWorld(int& rendercount, int& badhitcount, Player& player, Tran
|
|||||||
direct.Normalize();
|
direct.Normalize();
|
||||||
pos.y = 1;
|
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 = VIEW_DISTANCE; dist >= 0; dist -= CHUNK_SIZE_X) {
|
||||||
for (int dist = 0; dist <= VIEW_DISTANCE; 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é)
|
cosinus = .99996192306; // cos(1/2 degré)
|
||||||
echantillons = 180;
|
echantillons = 180;
|
||||||
}
|
}
|
||||||
else if (dist > VIEW_DISTANCE * .5f) {
|
else if (dist > VIEW_DISTANCE * .4f) {
|
||||||
sinus = .01151891831f; // sin(2/3 degré)
|
sinus = .01151891831f; // sin(2/3 degré)
|
||||||
cosinus = .99993365506; // cos(2/3 degré)
|
cosinus = .99993365506; // cos(2/3 degré)
|
||||||
echantillons = 120;
|
echantillons = 120;
|
||||||
}
|
}
|
||||||
else if (dist > VIEW_DISTANCE * .325f) {
|
else if (dist > VIEW_DISTANCE * .3f) {
|
||||||
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 * .25f) {
|
else if (dist > VIEW_DISTANCE * .2f) {
|
||||||
sinus = .0261769483;
|
sinus = .0261769483;
|
||||||
cosinus = .99965732497;
|
cosinus = .99965732497;
|
||||||
echantillons = 60;
|
echantillons = 60;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user