Gets or sets the texture applied to this primitive when rendering.
Read-write property
[Visual Basic .NET] |
---|
Public Property Texture() As IAgStkGraphicsRendererTexture2D |
[C#] |
---|
public IAgStkGraphicsRendererTexture2D Texture {get; set;} |
[Managed C++] |
---|
public: __property IAgStkGraphicsRendererTexture2D ^ get_Texture(); |
[Unmanaged C++] |
---|
public: HRESULT get_Texture( IAgStkGraphicsRendererTexture2D ** ppRetVal ); public: HRESULT put_Texture( IAgStkGraphicsRendererTexture2D Texture ); |
[Java] |
---|
public IAgStkGraphicsRendererTexture2D getTexture(); public void setTexture( IAgStkGraphicsRendererTexture2D ); |
[Python - STK API ] |
---|
@property def Texture(self) -> "IAgStkGraphicsRendererTexture2D": @Texture.setter def Texture(self, Texture:"IAgStkGraphicsRendererTexture2D") -> None: |
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.