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:

EXAMPLE

# Define the sign texture
texture sign = filename sign.rgb 1 2

# The next material use the texture context 
m 
	rd 0.5