Return to index
NAME
texture - get or set the current texture context
SYNOPSIS
texture (
[
id
[
=
(
filename
id
[u v]
)]] |
filename
id
[u v]
)
DESCRIPTION
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.
EXAMPLE
# Define the sign texture
texture sign = filename sign.rgb 1 2
# The next material use the texture context
m
rd 0.5