Primitive
There are occasions where we have a pre-existing entities that we want to include in our Angular Three Scene Graph,
we can use the ngt-primitive
element to do this.
ngt-primitive
always requires*args
with the entity to render.ngt-primitive
acceptsparameters
which are passed to the entity.- Attaching works the same for
ngt-primitive
- Differ from other Custom Elements, Angular Three Custom Renderer does not destroy the entity for
ngt-primitive
A more realistic example would be to use ngt-primitive
to render a GLTF model.