Table of Contents

Class EffectMaterial

Namespace
Microsoft.Xna.Framework.Graphics
Assembly
MonoGame.Framework.dll

Contains an effect subclass which is used to load data for an EffectMaterialContent type.

public class EffectMaterial : Effect, IDisposable
Inheritance
EffectMaterial
Implements
Inherited Members

Remarks

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.

Constructors

EffectMaterial(Effect)

Creates a new instance of EffectMaterial.

public EffectMaterial(Effect cloneSource)

Parameters

cloneSource Effect

An instance of an object to copy initialization data from.