Texture
A Texture is a true-color image in the common sense. It is not to be confused with the texture of a MeshLayer. Textures are used as lens textures or as overlay textures by Camera nodes.
Properties
| Name | Type | Default | Access | Description |
|---|---|---|---|---|
size | 2i | 🟩❌ | Texture size in pixels |
Details
Type1b: boolean1c: color (integer)1i: integer1f: float1s: string2b: 2-component boolean vector2i: 2-component integer vector2f: 2-component float vector3b: 3-component boolean vector3i: 3-component integer vector3f: 3-component float vector
Access
🟩 : Property value can be read with FxFile.Get
🟥 : Property value can be changed with FxFile.Set
❌ : Property value is read-only and can't be changed
Create
Textures can't be created like other files, they have to be imported with FxFile.Import and the FileType 223.
textureID = FxFile.Import(223, "c:\\MyFolder\\MyTexture.png", "");Files
The default texture is located at Programs\Foxel Studio\default.fxltex. Other imported textures are stored as shared files in Shared\Textures\ with the extension .fxltex.