Skip to content

Commit

Permalink
release: 0.0.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
emre-aki committed Nov 26, 2023
1 parent b36ae44 commit 52d5d53
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ you may take it as it is and expect many more features to follow very soon.

Tmp3D currently supports

- efficient drawing of such graphics primitives as lines, rectangles and
triangles
- a first-person camera with _6_ degrees-of-freedom: translating along _x_,
_y_ & _z_ axes, and _yaw_, _pitch_ & _roll_
- back-face culling
Expand All @@ -62,6 +64,7 @@ Tmp3D currently supports
- perspective-correct texture-mapping
- loading & rendering 3-D models in the [Wavefront `.obj` format](https://en.wikipedia.org/wiki/Wavefront_.obj_file)
- depth-buffering & depth-sorting
- double-buffering

and plans to support

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tmp3d",
"version": "0.0.7",
"version": "0.0.7.1",
"description": "A 3-D software renderer written from scratch in nothing but JavaScript",
"main": "./tools/server.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/data/d_player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

function D_Eye (): pvec3_t
{
return [0, -20, 100];
return [0, -20, -100];
}

window.__import__D_Player = function ()
Expand Down
2 changes: 1 addition & 1 deletion src/engine/r_camera.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@
{
projectionOrigin = Vec3(0, 0, zNear);
veloc = velocity;
camPitch = 0; camYaw = Math.PI; camRoll = 0;
camPitch = 0; camYaw = 0; camRoll = 0;
camPos = Vec3(eye[0], eye[1], eye[2]);
camRight = RIGHT; camDown = DOWN; camFwd = FWD;
matLookAt = R_LookAt(camPos, M_Add3(camPos, camFwd), camDown);
Expand Down

0 comments on commit 52d5d53

Please sign in to comment.