dxViwer/dxPtexViewer enable back-face culling

since we fixed gregory patch rotation/orientation issues.
This commit is contained in:
Takahito Tejima 2015-05-20 18:28:11 -07:00
parent a1424ae163
commit 6a0b43ab2f
2 changed files with 2 additions and 3 deletions

View File

@ -1493,7 +1493,7 @@ initD3D11(HWND hWnd) {
D3D11_RASTERIZER_DESC rasterDesc;
ZeroMemory(&rasterDesc, sizeof(rasterDesc));
rasterDesc.AntialiasedLineEnable = false;
rasterDesc.CullMode = D3D11_CULL_NONE; // XXX
rasterDesc.CullMode = D3D11_CULL_BACK;
rasterDesc.DepthBias = 0;
rasterDesc.DepthBiasClamp = 0.0f;
rasterDesc.DepthClipEnable = true;

View File

@ -1259,8 +1259,7 @@ initD3D11(HWND hWnd) {
D3D11_RASTERIZER_DESC rasterDesc;
ZeroMemory(&rasterDesc, sizeof(rasterDesc));
rasterDesc.AntialiasedLineEnable = false;
//rasterDesc.CullMode = D3D11_CULL_NONE; // XXX
rasterDesc.CullMode = D3D11_CULL_BACK; // XXX
rasterDesc.CullMode = D3D11_CULL_BACK;
rasterDesc.DepthBias = 0;
rasterDesc.DepthBiasClamp = 0.0f;
rasterDesc.DepthClipEnable = true;