Primitive

Insert any Object3D object into the scene, regardless of where it was created.

<div x-data="{mesh: new $3.Mesh()}">
    <div x-3.canvas>
        <br x-3.primitive="mesh" /> <!-- Insert mesh into the scene -->
    </div>
</div>

This directive is primarily designed to allow external models to be loaded via the $load magic property.

Last updated