共用方式為


AlphaTestMaterialContent.DiffuseColor Property

Note

This property is available only when developing for Windows.

Gets or sets the material diffuse color, which ranges from 0 to 1.

Namespace: Microsoft.Xna.Framework.Content.Pipeline.Graphics
Assembly: Microsoft.Xna.Framework.Content.Pipeline (in microsoft.xna.framework.content.pipeline.dll)

Syntax

public Nullable<Vector3> DiffuseColor { get; set; }

Property Value

The material's diffuse color.

See Also

Reference

AlphaTestMaterialContent Class
AlphaTestMaterialContent Members
Microsoft.Xna.Framework.Content.Pipeline.Graphics Namespace

Platforms

Windows 7, Windows Vista, Windows XP