Texture Mapping Attribute OCs


For a list of related topics and for a list of all texture mapping functions, see Texture Mapping.

There are additional texture mapping controls which are both independent of specific textures and applicable to all of the textures applied to a primitive. These are implemented as OCs.

The pipeline state's tm perspective correction field, modified by the PEXOCCSetTMPerspectiveCorrection OC, determines if, and how, texture coordinate values are adjusted when the view is a perspective projection. The choices are to correct at each vertex, to correct at each pixel, or not to correct.

The pipeline state's tm sample frequency field, modified by the PEXOCCSetTMSampleFrequency OC, specifies the frequency at which the texture map is sampled. This can be set to sample at each pixel (PEXTMSampleFrequencyPixel), or to base the sample frequency on the surface interpolation method (PEXTMSampleFrequencyInterpDep), ranging between sampling once per facet for interpolation method PEXSurfaceInterpNone, to once per vertex of method PEXSurfaceInterpColor, to once per pixel for methods PEXSurfaceInterpDotProduct and PEXSurfaceInterpNormal.

The tm resource hints field of the pipeline state, modified by the PEXOCCSetTMResourceHints OC, enables the client to suggest how the server could most efficiently manage the texture map resources. The client expresses a preference for whether speed (PEXTMResourceHintsSpeed) or space (PEXTMResourceHintsSpace) is more critical, or whether it doesn't matter (PEXTMResourceHintsNone). The client also can provide a prioritized usage list of texture mapping table entries.