Table of Contents Glide Programming Guide



Download 6.22 Mb.
Page65/106
Date03.02.2023
Size6.22 Mb.
#60547
1   ...   61   62   63   64   65   66   67   68   ...   106
GLIDEPGM
grTexCombine() also keeps track of required vertex parameters for the rendering routines. GR_COMBINE_FACTOR_NONE is provided to indicate that no parameters are required. Currently it is the same as GR_COMBINE_FACTOR_ZERO.

  1. Table Texture Mapping.4 Texture combine functions.

The rgbFunction and alphaFunction arguments to grTexCombine() can take on any of the values listed in the first column. The second and third columns show the computed color or alpha value for each choice. clocal and alocal represent the color components generated by indexing and filtering from the mipmap stored on tmu; cother and aother represent the incoming color components from the neighboring TMU (refer to Figure Texture Mapping.1).

texture combine function
(prefixed with GR_COMBINE_FUNCTION_)

computed color if specified as rgbFunction

computed alpha if specified as alphaFunction

ZERO

0

0

LOCAL

clocal

alocal

LOCAL_ALPHA

alocal

alocal

SCALE_OTHER
BLEND_OTHER

f * cother


Download 6.22 Mb.

Share with your friends:
1   ...   61   62   63   64   65   66   67   68   ...   106




The database is protected by copyright ©ininet.org 2024
send message

    Main page