Documentation / Node reference / tex nodes
tex/ImageFromNode
Loads an image embedded in a glTF file as a texture.
Files
Reads an image a geo/FileGLTF holds, by its index in the file. Use it for the images of a .glb, which have no path of their own.
Parameters
| Name | Type | What it does |
|---|---|---|
| sourceNode | NodePath | The geo/FileGLTF that holds the image. |
| imageIndex | UInt32 | Which image of the file, from 0. |
| colorSpace | UInt8 sRGB · Linear | How the pixel values are read. |
| generateMipmaps | Bool | Keeps the image smooth when seen from far away. |
| mipmapsFilter | UInt8 Box · EnvironmentGGX | How the smaller copies of the image are made. |
See also
This page is generated from the engine, so it describes the release you can download. The same text is in the editor's Help panel next to the node itself.