added texture atlas

This commit is contained in:
2025-09-02 17:55:25 +02:00
parent 6fb19c415f
commit a9cab195b6
3 changed files with 3 additions and 45 deletions

View File

@@ -9,7 +9,8 @@ namespace Voxel
public static float Pitch = 0f;
public static float Yaw = -90f;
public static float FOV = 70f;
public static float Speed = 0.5f;
public static float Speed = 5f;
public static float ShiftSpeed = 20f;
public static Matrix4 view =>
Matrix4.LookAt(Position, Position + Front, Vector3.UnitY);
@@ -33,7 +34,7 @@ namespace Voxel
float moveSpeed = Speed * time;
if (Input.GetKey(OpenTK.Windowing.GraphicsLibraryFramework.Keys.LeftShift))
{
moveSpeed *= 10;
moveSpeed = ShiftSpeed * time;
}
if (Input.GetKey(OpenTK.Windowing.GraphicsLibraryFramework.Keys.W))
{