MAJ
This commit is contained in:
parent
443b3a319d
commit
af9c782c1e
3 changed files with 19 additions and 39 deletions
|
|
@ -83,7 +83,7 @@ namespace Map3DRendering.Common {
|
|||
|
||||
// Get the projection matrix using the same method we have used up until this point
|
||||
public Matrix4 GetProjectionMatrix() {
|
||||
return Matrix4.CreatePerspectiveFieldOfView(_fov, AspectRatio, 0.01f, 1000f);
|
||||
return Matrix4.CreatePerspectiveFieldOfView(_fov, AspectRatio, 0.01f, 5000f);
|
||||
}
|
||||
|
||||
// This function is going to update the direction vertices using some of the math learned in the web tutorials.
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ namespace Map3DRendering {
|
|||
private readonly int BlockSize = 17;
|
||||
private readonly int allBlocks = 255 * 17 * 255 * 17;
|
||||
private readonly int cellSize = 8;
|
||||
private readonly int radius = 0x5; // Rayon du voisinage
|
||||
private readonly int radius = 0x10; // Rayon du voisinage
|
||||
|
||||
public int[,] _vertexArrayObject;
|
||||
public int[,] _vertexBufferObject;
|
||||
|
|
@ -44,7 +44,6 @@ namespace Map3DRendering {
|
|||
|
||||
CalculeRadius(currentLandBlockX, currentLandBlockY);
|
||||
}
|
||||
|
||||
public int GetIndiceLenght() {
|
||||
return (17 - 1) * (17 - 1) * 6; //Always that.
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue