mirror of
https://github.com/Terncode/pixel.horse.git
synced 2026-09-24 13:55:04 +02:00
Archive update v0.53.2
This commit is contained in:
@@ -13,11 +13,20 @@ describe('mat4', () => {
|
||||
});
|
||||
|
||||
describe('ortho()', () => {
|
||||
expect(ortho(createMat4(), 100, 200, 300, 400, 10, 20)).eql(new Float32Array([
|
||||
expect(ortho(createMat4(), 100, 200, 300, 400, 10, 20, true)).eql(new Float32Array([
|
||||
0.019999999552965164, 0, 0, 0,
|
||||
0, 0.019999999552965164, 0, 0,
|
||||
0, 0, -0.20000000298023224, 0,
|
||||
-3, -7, -3, 1
|
||||
]));
|
||||
});
|
||||
|
||||
describe('orthoNoZ()', () => {
|
||||
expect(ortho(createMat4(), 100, 200, 300, 400, 10, 20, false)).eql(new Float32Array([
|
||||
0.019999999552965164, 0, 0, 0,
|
||||
0, 0.019999999552965164, 0, 0,
|
||||
0, 0, 1, 0,
|
||||
-3, -7, 0, 1
|
||||
]));
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user