GFX.glTF¶
Name | - | Description | Default | Type |
---|---|---|---|---|
<input> |
[Float4] |
|||
<output> |
GFX.Drawable |
|||
Path |
The path to load the model from | None |
String &String |
|
Bytes |
The bytes to load the model from | None |
Bytes &Bytes |
|
Copy |
Reference to another glTF model to copy | None |
&GFX.Drawable |
|
Params |
Shader parameters for this drawable | None |
{GFX.Texture2D GFX.TextureCube [Float4] Float4 Float3 Float2 Float Int Int2 Int3 Int4 &(GFX.Texture2D GFX.TextureCube [Float4] Float4 Float3 Float2 Float Int Int2 Int3 Int4)} &{GFX.Texture2D GFX.TextureCube [Float4] Float4 Float3 Float2 Float Int Int2 Int3 Int4 &(GFX.Texture2D GFX.TextureCube [Float4] Float4 Float3 Float2 Float Int Int2 Int3 Int4)} |
|
Features |
Features to attach to this drawable | None |
[GFX.Feature] &[GFX.Feature] |
|
AnimationController |
The animation controller | None |
Shard [Shard] |
Details¶
Loads a glTF model from a file. Outputs a GFX.DrawableHierarchy
that can be passed to Draw.
Static file¶
Loaded when the Wire containing it is warmed up.
{:Transform ...} (GFX.glTF :Path "pathToModel.glb") >= .drawable
Dynamic file¶
Loaded when activated. You should cache the result inside a Setup shard.
{:Transform ... :Path .path} (GFX.glTF) >= .drawable
Raw bytes¶
Loaded when activated. You should cache the result inside a Setup shard.
{:Transform ... :Bytes .gltf-data} (GFX.glTF) >= .drawable
Duplicate existing model¶
Experimental/unstable
This API is experimental and might produce unexpected results or crash.
Generate another GFX.DrawableHierarchy
from an existing GFX.DrawableHierarchy
... (GFX.glTF ...) >= .other-gltf-drawable
{:Transform ... :Copy .other-gltf-drawable} (GFX.glTF) >= .drawable