Description
Gets or sets the texture applied to this
primitive when rendering.
Property type
Read-write property
Syntax
| [Visual Basic .NET] |
|---|
Public Property Texture() As IAgStkGraphicsRendererTexture2D
|
Remarks
When a Texture is defined, it is modulated with the
primitive's Color. In order to show just
the texture color, make sure Color is
White.
By default, the texture is aligned north and encompasses the bounding extent of the surface mesh. Use Texture Matrix to scale, translate, and/or rotate the texture.
The texture will not show up correctly if Set Without Texturing is used to define the surface mesh. When a texturing is desired, always use Set instead of Set Without Texturing.
If rendering performance is poor when a texture is applied to the surface mesh, it is likely that the texturing is occurring in software instead of hardware. If you experience this, try updating your video card drivers.