# NIF File Format Documentation

NIF Objects | Compound Types | Enum Types | Basic Types | File Versions

## NiSourceTexture

Describes texture source and properties.

### Attributes

Name | Type | Arg | Arr1 | Arr2 | Cond | Description | From | To
--- | --- | --- | --- | --- | --- | --- | --- | ---
From NiObject
From NiObjectNET
Skyrim Shader Type | BSLightingShaderPropertyShaderType |  |  |  | IsDerivedType(BSLightingShaderProperty::TYPE) | Configures the main shader path |  |
Name | string |  |  |  |  | Name of this controllable object, used to refer to the object in .kf files. |  |
Has Old Extra Data | bool |  |  |  |  | Extra data for pre-3.0 versions. |  | 2.3
Old Extra Prop Name | string |  |  |  | hasOldExtraData | (=NiStringExtraData) |  | 2.3
Old Extra Internal Id | uint |  |  |  | hasOldExtraData | ref |  | 2.3
Old Extra String | string |  |  |  | hasOldExtraData | Extra string data. |  | 2.3
Unknown Byte | byte |  |  |  |  | Always 0. |  | 2.3
Extra Data | Ref<NiExtraData> |  |  |  |  | Extra data object index. (The first in a chain) | 3.0 | 4.2.2.0
Num Extra Data List | uint |  |  |  |  | The number of Extra Data objects referenced through the list. | 10.0.1.0 |
Extra Data List | Ref<NiExtraData> |  | Num Extra Data List |  |  | List of extra data indices. | 10.0.1.0 |
Controller | Ref<NiTimeController> |  |  |  |  | Controller object index. (The first in a chain) | 3.0 |
From NiTexture
From NiSourceTexture
Use External | byte |  |  |  |  | Is the texture external? |  |
File Name | FilePath |  |  |  | useExternal == 1 | The external texture file name. |  |
Unknown Link | Ref<NiObject> |  |  |  | useExternal == 1 | Unknown. | 10.1.0.0 |
Unknown Byte | byte |  |  |  | useExternal == 0 | Unknown. Seems to be set if Pixel Data is present? |  | 10.0.1.0
File Name | FilePath |  |  |  | useExternal == 0 | The original source filename of the image embedded by the referred NiPixelData object. | 10.1.0.0 |
Pixel Data | Ref<ATextureRenderData> |  |  |  | useExternal == 0 | Pixel data object index. NiPixelData or NiPersistentSrcTextureRendererData |  |
Pixel Layout | PixelLayout |  |  |  |  | Specifies the way the image will be stored. |  |
Use Mipmaps | MipMapFormat |  |  |  |  | Specifies whether mip maps are used. |  |
Alpha Format | AlphaFormat |  |  |  |  | Note: the NiTriShape linked to this object must have a NiAlphaProperty in its list of properties to enable material and/or texture transparency. |  |
Is Static | byte |  |  |  |  | Is Static? |  |
Direct Render | bool |  |  |  |  | Load direct to renderer | 10.1.0.106 |
Persist Render Data | bool |  |  |  |  | Render data is persistant | 20.2.0.7 |

### Parent Of

- NiSourceCubeMap