Set the effect CurrentTechnique in the processor.

Last post 05-05-2008, 8:04 AM by DrCosinus. 2 replies.
Sort Posts: Previous Next
  •  05-04-2008, 12:09 PM

    Set the effect CurrentTechnique in the processor.

    Hi all,

    I have a custom effect with multiple techniques (for example with and without alpha blend).
    According to mesh content I need to set the default CurrentTechnique with the appropriate value.
    Is it possible to set the default CurrentTechnique of a custom effect in a processor?
    I can not find this property in the EffectMaterialContent class. Can it be set as an OpaqueData?

    Thanks.

    DrCosinus
  •  05-04-2008, 5:55 PM

    Re: Set the effect CurrentTechnique in the processor.

    There isn't currently any way to do this: it will always just pick the default (first) technique.

    You you add this by deriving a new class from EffectMaterialContent, and writing a custom loader that would chain to our own, then also serialize the extra data.

    Please file this as a suggestion on Connect if you'd like to see it added in a future version.


    --
    XNA Framework Developer
    blog - homepage
  •  05-05-2008, 8:04 AM

    Re: Set the effect CurrentTechnique in the processor.

    Thanks a lot Shawn.

    I just post my suggection on Connect.

    Pending, I will follow your suggestion, and create a derived class from EffectMaterialContent.


View as RSS news feed in XML
©2007 Microsoft Corporation. All rights reserved. Privacy Statement Terms of Use Code of Conduct Feedback