Rasterizer State
카테고리: Graphics
태그: DirectX
홍정모님의 그래픽스 새싹코스 강의를 듣고 정리한 내용입니다.
🐥 Rasterizer Description
// Create a rasterizer state
D3D11_RASTERIZER_DESC rastDesc;
ZeroMemory(&rastDesc, sizeof(D3D11_RASTERIZER_DESC));
rastDesc.FillMode = D3D11_FILL_MODE::D3D11_FILL_SOLID;
rastDesc.CullMode = D3D11_CULL_MODE::D3D11_CULL_NONE;
rastDesc.FrontCounterClockwise = false;
rastDesc.DepthClipEnable = true;
m_device->CreateRasterizerState(&rastDesc,
m_solidRasterizerSate.GetAddressOf());
- D3D_FILL_MODE : FILL_SOLID / FILL_WIREFRAME
- D3D_CULL_MODE : CULL_NONE / CULL_BACK / CULL_FRONT
🐥 WireFrame Mode
🐥 Culling
None | Culling |
---|---|
댓글 남기기