TEXTURE

THE BOX'S MAIN HELP:
This function returns the color and opacity, if any,
found in the texture map file MAP at location (S,T).
WS and WT may be used to enhance the filtering.
refer to pages 320-321 in the RenderMan Companion.

MAP (input):
This must be a string. The default is empty.
The name of the texture map file to be used.
refer to pages 320-321 in the RenderMan Companion.

S (input):
This must be a float. The default is s.
Horizontal location in the texture map file.
refer to pages 320-321 in the RenderMan Companion.

T (input):
This must be a float. The default is t.
Vertical location in the texture map file.
refer to pages 320-321 in the RenderMan Companion.

CHN (input):
This must be an integer.  It represents which rgba channel from the
map file is to be used to generate the texture.  Where 0 is red; 
1 is green; 2 is blue; 3 is the opacity and 4, the default, is rgb.
refer to pages 320-321 in the RenderMan Companion.

WS (input):
This must be a float. The default is 1.0.
This is the number of horizontal filter samples.
WS may be used to enhance the horizontal filtering.
refer to pages 320-321 in the RenderMan Companion.

WT (input):
This must be a float. The default is 1.0.
This is the number of vertical filter samples.
WT may be used to enhance the vertical filtering.
refer to pages 320-321 in the RenderMan Companion.

FLT (input):
Selects the filter to be used when sampling the texture data.
Possible filters are "box" and "gaussian".  The default is "box".
Use of "gaussian" should produce higher quality results but with
a slight performance penalty.

INT (input):
Selects whether to interpolate between adjacent resolutions of a
multi-resolution texture in order to smooth the transition
between resolutions.  Possible values are 0.0 to disable the
interpolation and 1.0 to enable it.  The default is 0.0 to not
interpolate.

TEX (output):
This function returns the color or float found in the 
texture map file MAP at location (S,T) for channel(s) CHN.
WS and WT may be used to enhance the filtering.
refer to pages 320-321 in the RenderMan Companion.

TXOP (output):
This function returns the opacity color or float found in the
alpha channel of the texture map file MAP[3] at location (S,T).
WS and WT may be used to enhance the filtering.
refer to pages 320-321 in the RenderMan Companion.

<-- BACK TO Functions

© Copyright 1996,1998 Cinema Graphics Inc. All Rights reserved.