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; } } |