|
|

楼主 |
发表于 2005-8-7 15:40:00
|
显示全部楼层
Re:PizelShader 常量表问题
关键代码
D3DXCompileShaderFromFile("Light.ps", 0, 0, "Main", "ps_2_0", D3DXSHADER_DEBUG, &shader, &errorBuffer, &DiffuseConstTable);
DiffuseHandle = DiffuseConstTable->GetConstantByName(0,"Diffuse");
……
D3DXCompileShaderFromFile("Bloom.ps", 0, 0, "Main", "ps_2_0", D3DXSHADER_DEBUG, &shader, &errorBuffer, &BloomConstTable);
OffsetHandle = BloomConstTable->GetConstantByName(0,"Offset"); |
|