Java3D Tutorial
Jenny Orr, Willamette University
Texture Modes
Textures can be combined with the "color" of the shape.
See LightDemo.
Mode
P'
rgb
P'
a
REPLACE
T
rgb
T
a
DECAL
P
rgb
(1-T
a
)+T
rgb
T
a
P
a
MODULATE
P
rgb
T
rgb
P
a
T
a
BLEND
P
rgb
(1-T
rgb
)+B
rgb
T
rgb
P
a
T
a
P
rgb
is the color of the pixel being texture mapped, as if no texture-mapping was to take place
P
a
is the alpha of the pixel being texture mapped, as if no texture-mapping was to take place
T
rgb
is the texture color
T
a
is the texture alpha
B
rgb
is the blend color
B
a
is the blend alpha
Non-primed quantities denote
before
Primed quantities denote
after