XNA Creators Club Online
Page 1 of 1 (2 items)
Sort Posts: Previous Next

How long is the effective duration of effect state in shader code

Last post 04-20-2008 2:04 PM by Scrogu. 1 replies.
  • 04-20-2008 1:02 PM

    How long is the effective duration of effect state in shader code

    How long is the effective duration of effect state in shader code?
    Like the "ZEnable" in shader code. The effective duration is only the pass? Or persist the RenderState of ZEnable=FALSE when exit the pass?

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    technique TShadowQVSM_ADPATIVE3 //UpdateShadowResultTextureForDeferredShading
    {
    pass p0
    {
    VertexShader = (VsTextures[bUse3D_Way]);
    PixelShader = compile ps_3_0 UpdateShadowResultTextureForDeferredShadingPS();

    ZWriteEnable=FALSE;
    ZEnable=FALSE;
    }
    }
  • 04-20-2008 2:04 PM In reply to

    Re: How long is the effective duration of effect state in shader code

    Forever, or until another it is overwritten somewhere else.
Page 1 of 1 (2 items) Previous Next