From 6a0b43ab2f0e360a3eaad7051d58b24978d1ec2d Mon Sep 17 00:00:00 2001 From: Takahito Tejima Date: Wed, 20 May 2015 18:28:11 -0700 Subject: [PATCH] dxViwer/dxPtexViewer enable back-face culling since we fixed gregory patch rotation/orientation issues. --- examples/dxPtexViewer/dxPtexViewer.cpp | 2 +- examples/dxViewer/dxviewer.cpp | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/examples/dxPtexViewer/dxPtexViewer.cpp b/examples/dxPtexViewer/dxPtexViewer.cpp index dec13cc4..dc4ca77b 100755 --- a/examples/dxPtexViewer/dxPtexViewer.cpp +++ b/examples/dxPtexViewer/dxPtexViewer.cpp @@ -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; diff --git a/examples/dxViewer/dxviewer.cpp b/examples/dxViewer/dxviewer.cpp index e5b643c8..55b4309e 100644 --- a/examples/dxViewer/dxviewer.cpp +++ b/examples/dxViewer/dxviewer.cpp @@ -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;