mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 14:44:36 +00:00
init commit
This commit is contained in:
parent
ae108d0411
commit
e325902bac
6 changed files with 11 additions and 5 deletions
|
|
@ -186,10 +186,10 @@ GFXD3D11StateBlock::GFXD3D11StateBlock(const GFXStateBlockDesc& desc)
|
|||
else
|
||||
mSamplerDesc[i].Filter = comparison ? D3D11_FILTER_COMPARISON_ANISOTROPIC : D3D11_FILTER_ANISOTROPIC;
|
||||
|
||||
mSamplerDesc[i].BorderColor[0] = 1.0f;
|
||||
mSamplerDesc[i].BorderColor[1] = 1.0f;
|
||||
mSamplerDesc[i].BorderColor[2] = 1.0f;
|
||||
mSamplerDesc[i].BorderColor[3] = 1.0f;
|
||||
mSamplerDesc[i].BorderColor[0] = gfxSamplerState.borderColor.red;
|
||||
mSamplerDesc[i].BorderColor[1] = gfxSamplerState.borderColor.green;
|
||||
mSamplerDesc[i].BorderColor[2] = gfxSamplerState.borderColor.blue;
|
||||
mSamplerDesc[i].BorderColor[3] = gfxSamplerState.borderColor.alpha;
|
||||
mSamplerDesc[i].ComparisonFunc = GFXD3D11CmpFunc[gfxSamplerState.samplerFunc];
|
||||
|
||||
hr = D3D11DEVICE->CreateSamplerState(&mSamplerDesc[i], &mSamplerStates[i]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue