Texture Property

BasicEffect.Texture Property

Gets or sets a texture to be applied by this effect.

Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework.Graphics (in microsoft.xna.framework.graphics.dll)

public Texture2D Texture { get; set; }

Property Value

Texture to be applied by this effect.

If the TextureFilter sampler state is not set, the default filter for BasicEffect is TextureFilter.Linear.

Xbox 360, Windows 7, Windows Vista, Windows XP

Community Additions

© 2016 Microsoft