我想要做一个基本的阴影贴图,但由于某种原因它没有正确渲染。 Video of the Problem 我渲染使用平面着色的房子: int shadowMapWidth = WINDOW_SIZE_X * (int)SHADOW_MAP_RATIO;
int shadowMapHeight = WINDOW_SIZE_Y * (int)SHADOW_MAP_RATIO;
// Renderin
我正在学习DirectX SDK中的阴影贴图示例。这个样品在初始化期间创建了一个模板表面,并且说: Create the depth-stencil buffer to be used with the shadow map
We do this to ensure that the depth-stencil buffer is large
enough and has correct m