threers 0.1.0

Drop-in three.js replacement for Rust and WebAssembly (wgpu) — THREE.* API, scene graph, PBR, post-fx, mesh BVH, CSG, an OpenSCAD front end with a watertight exact-CSG kernel, headless render, and native media codecs
Documentation
#usda 1.0
(
    defaultPrim = "Character"
    metersPerUnit = 1
    upAxis = "Y"
    timeCodesPerSecond = 24
    startTimeCode = 0
    endTimeCode = 24
)

def SkelRoot "Character"
{
    def Skeleton "Skel" (
        prepend apiSchemas = ["SkelBindingAPI"]
    )
    {
        uniform token[] joints = ["Root", "Root/Mid", "Root/Mid/Tip"]
        uniform matrix4d[] bindTransforms = [
            ( (1, 0, 0, 0), (0, 1, 0, 0), (0, 0, 1, 0), (0, 0, 0, 1) ),
            ( (1, 0, 0, 0), (0, 1, 0, 0), (0, 0, 1, 0), (0, 2, 0, 1) ),
            ( (1, 0, 0, 0), (0, 1, 0, 0), (0, 0, 1, 0), (0, 4, 0, 1) )
        ]
        uniform matrix4d[] restTransforms = [
            ( (1, 0, 0, 0), (0, 1, 0, 0), (0, 0, 1, 0), (0, 0, 0, 1) ),
            ( (1, 0, 0, 0), (0, 1, 0, 0), (0, 0, 1, 0), (0, 2, 0, 1) ),
            ( (1, 0, 0, 0), (0, 1, 0, 0), (0, 0, 1, 0), (0, 2, 0, 1) )
        ]
        rel skel:animationSource = </Character/Anim>
    }

    def Mesh "Body" (
        prepend apiSchemas = ["SkelBindingAPI"]
    )
    {
        rel skel:skeleton = </Character/Skel>
        int[] primvars:skel:jointIndices = [0, 1, 0, 1, 1, 2, 1, 2] (
            elementSize = 2
            interpolation = "vertex"
        )
        float[] primvars:skel:jointWeights = [0.8, 0.2, 0.5, 0.5, 0.7, 0.3, 0.1, 0.9] (
            elementSize = 2
            interpolation = "vertex"
        )
        matrix4d primvars:skel:geomBindTransform = ( (1, 0, 0, 0), (0, 1, 0, 0), (0, 0, 1, 0), (0, 0, 0, 1) )
        int[] faceVertexCounts = [4]
        int[] faceVertexIndices = [0, 1, 2, 3]
        point3f[] points = [(0, 0, 0), (1, 0, 0), (1, 4, 0), (0, 4, 0)]
    }

    def SkelAnimation "Anim"
    {
        uniform token[] joints = ["Root", "Root/Mid", "Root/Mid/Tip"]
        float3[] translations.timeSamples = {
            0: [(0, 0, 0), (0, 2, 0), (0, 2, 0)],
            24: [(0, 0, 0), (0, 2, 0), (1, 2, 0)],
        }
        quatf[] rotations.timeSamples = {
            0: [(1, 0, 0, 0), (1, 0, 0, 0), (1, 0, 0, 0)],
            24: [(1, 0, 0, 0), (0.9239, 0, 0, 0.3827), (1, 0, 0, 0)],
        }
        half3[] scales.timeSamples = {
            0: [(1, 1, 1), (1, 1, 1), (1, 1, 1)],
            24: [(1, 1, 1), (1, 1, 1), (1, 1, 1)],
        }
    }
}