Return to index
texture - get or set the current texture context
To create a new texture, we must define its parameters. There isn't a default texture.
If the keyword is followed by an identifier id, then it reestablishes a previous context. If the
specified context was never defined, an error will result.
The following parameters are defined:
- filename id : This file keep the texture information.
- u v : To specify the weight and the height in world coordinates of the texture. The default value is zero to each other.
# Define the sign texture
texture sign = filename sign.rgb 1 2
# The next material use the texture context