깊이와 스텐실
Posted by Go crazy for anything that will make you smile.
후하후하..이번에 삽질좀 했군.ㅜㅜ. 기억하기. 깊이테스트든 스텐실 테스트든 결국 그리기의 여부를 판단하는 연산. 스텐실버퍼와 깊이버퍼는 물리적으로 하나의 버퍼를 나누어 사용한다. // 깊이스텐실 텍스처를 생성함. D3D10_TEXTURE2D_DESC descDepth; descDepth.Width = scd->BufferDesc.Width; descDepth.Height = scd->BufferDesc.Height; descDepth.MipLevels = 1; descDepth.ArraySize = 1; descDepth.Format = DXGI_FORMAT_D24_UNORM_S8_UINT; //스텐실도 포함. descDepth.SampleDesc.Count = 1; descDepth.SampleDes..