4.2 Trait Modifiers
As mentioned earlier there are several traits that can be modified for textures. In
their descriptions, T refers to some other texture type that is to be amended by
the modifier.
-
ShBorderClamp<T>:
-
Clamp texture lookups with extreme texture coordinates to a border
value
-
ShEdgeClamp<T>:
- Clamp texture lookups with extreme texture coordinates
to the edge of the texture (default)
-
ShWrapRepeat<T>:
- Repeat the texture for texture lookups outside its range
-
/ ShInterpolate<N, T>:
- Set the degree of interpolation to N Useful
values for this are 0 for nearest-neighbour lookups, 1 for linear
interpolation, and 3 for cubic (Catmull-Rom) interpolation. A value
of 2 will be upgraded to 3, anything higher than 3 will be reduced to
3.
-
/ ShMIPFilter<T>:
- Use MIP-mapped filtering (turn it on if it is off).
-
/ ShNoMIPFilter<T>:
- Do not use MIP-mapped filtering (turn it off if it
is on).
Note: This manual is available as a bound book from AK Peters, including better formatting, in-depth examples, and about 200 pages not available on-line.