2022-10-03 00:10:54 +00:00
|
|
|
# Materials: Commands {#mat_commands}
|
|
|
|
## tcgen
|
2022-10-17 20:33:16 +00:00
|
|
|
### Syntax
|
2022-10-03 00:10:54 +00:00
|
|
|
|
|
|
|
**tcGen <coordinate source>**
|
|
|
|
|
2022-10-17 20:33:16 +00:00
|
|
|
### Overview
|
2022-10-03 00:10:54 +00:00
|
|
|
|
|
|
|
Specifies how texture coordinates are generated and where they come
|
|
|
|
from. Valid functions are **base**, **lightmap** and **environment**.
|
|
|
|
|
|
|
|
### Sources {#sources}
|
|
|
|
|
|
|
|
#### base {#base}
|
|
|
|
|
|
|
|
Base texture coordinates from the original art.
|
|
|
|
|
|
|
|
#### lightmap {#lightmap}
|
|
|
|
|
|
|
|
Lightmap texture coordinates.
|
|
|
|
|
|
|
|
#### environment {#environment}
|
|
|
|
|
|
|
|
Make this object environment mapped.
|