Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
EffectMaterial Class
Collapse the table of content
Expand the table of content

EffectMaterial Class

XNA Game Studio 4.0
Contains an effect subclass which is used to load data for an EffectMaterialContent type.

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

public class EffectMaterial : Effect

For most purposes, this type can be ignored, and treated exactly like a regular effect. When an EffectMaterial type is loaded from .xnb format, its parameter values and textures are also loaded and automatically set on the effect, in addition to the HLSL shader code. Use this class to write a content pipeline extension to store materials inside a custom data type.

Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone 7

Community Additions

© 2015 Microsoft