HP b2600 Reference Manual page 428

Opengl 1.1 reference
Hide thumbs Also See for b2600:
Table of Contents

Advertisement

T
glTexEnv
Description
A texture environment specifies how texture values are interpreted when a fragment is
textured. target must be GL_TEXTURE_ENV. pname can be either
GL_TEXTURE_ENV_MODE, GL_TEXTURE_ENV_COLOR or
GL_TEXTURE_LIGHTING_MODE_hp (if the extension GL_hp_texture_lighting is
supported).
If pname is GL_TEXTURE_ENV_MODE, then params is (or points to) the symbolic
name of a texture function. Four texture functions may be specified: GL_MODULATE,
GL_DECAL, GL_BLEND, and GL_REPLACE. If pname is
GL_TEXTURE_LIGHTING_MODE_hp, two possible values for param may be specified:
either GL_TEXTURE_PRE_SPECULAR_hp or GL_TEXTURE_POST_SPECULAR_hp.
A texture function acts on the fragment to be textured using the texture image value
that applies to the fragment (see glTexParameter) and produces an RGBA color for that
fragment. The following table shows how the RGBA color is produced for each of the
three texture functions that can be chosen. C is a triple of color values (RGB) and A is
the associated alpha value. RGBA values extracted from a texture image are in the
range [0, 1]. The subscript f refers to the incoming fragment, the subscript t to the
texture image, the subscript c to the texture environment color, and subscript v indicates
a value produced by the texture function.
A texture image can have up to four components per texture element (see glTexImage1D,
glTexImage2D, glCopyTexImage1D, and glCopyTexImage2D). In a one-component
image, L
three-component image has only a color value, C
color value C
Base Internal Format
GL_ALPHA
GL_LUMINANCE
1
GL_LUMINANCE_ALPHA
2
GL_INTENSITY
428
indicates that single component. A two-component image uses L
t
and an alpha value A
t
GL_MODULATE
C
= C
v
f
A
= A
A
v
f
t
C
= L
C
v
t
f
A
= A
v
f
C
= L
C
v
t
f
A
= A
A
v
t
f
C
= C
I
v
f
t
A
= A
I
v
f
t
. A four-component image has both a
t
.
t
Texture Functions
GL_DECAL
GL_BLEND
(undefined)
C
= C
v
A
= A
v
(undefined)
C
= (1 - L
v
C
+ L
f
A
= A
v
(undefined)
C
= (1 - L
v
C
+ L
f
A
= A
v
(undefined)
C
= (1 - I
v
C
+ I
f
A
= (1 - I
v
A
+ I
f
and A
. A
t
t
GL_REPLACE
C
= C
f
v
f
A
= A
f
v
t
)
C
= L
t
v
t
C
A
= A
t
c
v
f
f
)
C
= L
t
v
t
C
A
= A
t
c
v
t
A
t
f
)
C
= I
t
v
t
C
A
= I
t
c
v
t
)
t
A
t
c
Chapter 18

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents