Reference

Home Reference Index Editor Scenery Tab NL2MAT Editor

NL2MAT Texture Unit Setup



Introduction

This window is used to configure a texture unit. A material can make use of up to 4 texture units. Here you can assign a texture and control how the texture coordinates are generated. For each texture unit the processing works like this: First, a texture coordinate is generated by the T.C. Gen stage. The texture coordinate is then modified by optional T.C. Mod stages. Depending on the texture unit type and mode settings, a color value is then fetched using the final texture coordinate. That color value is stored in the unit's texture register that can be accessed in the shader core. Some texture types do not require the texture coordinate generation and modification stages. For example the Constant Color type simply stores a fixed color value into the texture register.


Type Tab

Here you set the type of texture, respectively what type of data is generated in this texture unit.


Mode Tab

Here you need to set how the texture image is being used.


T.C. Gen. Tab

Here you can control how the texture coordinates are generated.


T.C. Mod. Tab

Here you can add multiple modifications that further modify the generated texture coordinates. Each stage has the previous stage as input. The first stage takes the coordinates from the TCGEN unit as input. The output of the last stage is the final output. If no TCMOD stages are added, the output of the TCMOD unit is identical to the output of the TCGEN unit.


Advanced Tab

Here you can select advanced options that affect the texture quality and fetch.