tests/codecs (m-z): comments: specs only
This commit is contained in:
1 parent
98b4ce533e
commit
a6732d45f2
23 files changed
+46
-177
No files matched your search
@@ -1,6 +1,4 @@
|
||||
-- codecs/model/Rig tests: morph targets and weights animations from frames, skeletons in local and world space
|
||||
-- (node TRS, inverse bind matrices against Mat4), influences (top four, normalised), joint TRS animations; and
|
||||
-- Pixels.palette.
|
||||
-- codecs/model/Rig tests: morph targets, skeletons (inverse bind matrices against Mat4), influences, Pixels.palette.
|
||||
local T = require("@tests/T")
|
||||
local Rig = require("@rosetta/codecs/model/Rig")
|
||||
local Mat4 = require("@rosetta/codecs/model/Mat4")
|
||||
@@ -21,7 +19,6 @@ local function near(a: number, b: number): boolean
|
||||
return math.abs(a - b) < 1e-5
|
||||
end
|
||||
|
||||
-- morph
|
||||
do
|
||||
local base = { 0, 0, 0, 1, 0, 0 }
|
||||
local prim: Types.Primitive = { attributes = { POSITION = Scene.accessor(f32s(base), "f32", 3, 2) }, mode = "points" }
|
||||
@@ -44,7 +41,6 @@ do
|
||||
t:eq(buffer.readf32(ch.output.data, (3 + 2) * 4), 1, "key 2 -> target 3")
|
||||
end
|
||||
|
||||
-- skeleton
|
||||
do
|
||||
local q = Mat4.axisAngle(0, 0, 1, 90)
|
||||
local joints = {
|
||||
@@ -81,7 +77,6 @@ do
|
||||
t:eq(s.animations[ai].channels[1].node, nodes[2], "channel node")
|
||||
end
|
||||
|
||||
-- palette
|
||||
do
|
||||
local pal = Pixels.palette(buffer.fromstring("\1\2\3\4\5\6"), 0, 2)
|
||||
t:eq(buffer.readu32(pal, 4), 0xFF060504, "rgb triples")
|
||||
|
||||
Reference in new issue
Block a user