|
|

楼主 |
发表于 2008-1-7 18:08:00
|
显示全部楼层
Re: 请问一下HLSL脚本语法在哪里找?
那么对于这种hlsl,在应用程序里就不需要列举pass了吧?
// Apply the technique contained in the effect
g_pEffect->Begin(&cPasses, 0);
for (iPass = 0; iPass < cPasses; iPass++)
{
g_pEffect->BeginPass(iPass);
// Only call CommitChanges if any state changes have happened
// after BeginPass is called
g_pEffect->CommitChanges();
// Render the mesh with the applied technique
g_pMesh->DrawSubset(0);
g_pEffect->EndPass();
}
g_pEffect->End();
那么又该怎样调用呢? |
|