我有一个问题要问你,因为我真的需要这个,但我不知道该如何解决。是否有可能将法线贴图图像转换为 NormalBuffer?或者换句话说...我想在 DirectX 9-12 中制作一个 3D 应用程序,它将用于模型的纹理(模型的材料)一些将从 Substance Painter 导出的图像。有没有可能这样做?
1 回答
To render with Substance, you need a PBR shader and that's what determines your required inputs. Typically you need an albeto (diffuse) map, a normal map, and a set of material maps for roughness/metalness or specular/glossiness, as well as typically an ambient-occlusion (AO) map or channel. See PBR Guide.
You might want to take a look at the SimplePBR12 sample for a working example.
BTW, you should really not try to create an app that uses Direct3D 9, DIrect3D 10, Direct3D 11, and Direct3D 12. You are much better off these days just sticking with DirectX 11 unless you are a graphics expert who needs the additional control of DirectX 12.