I mostly develop on Mac, so I might be better off trying to figure out the native Metal debugging features rather than trying RenderDoc.
The shadow node is set up using ShadowNodeHelper::createShadowNodeWithSettings
. The shadowParams
vector looks like this:
Code: Select all
{
supportedLightTypes = 1u << LT_DIRECTIONAL,
technique = SHADOWMAP_PSSM,
numPssmSplits = 3,
atlasId = 0,
atlasStart = [ {0, 0}, {0, 2048}, {1024, 2048} ],
resolution = [ {2048, 2048}, {1024, 1024}, {1024, 1024} ]
},
{
supportedLightTypes = 1u << LT_POINT) | (1u << LT_SPOTLIGHT),
technique = SHADOWMAP_FOCUSED,
numPssmSplits = 0,
atlasId = 0,
atlasStart = {0, 3072},
resolution = {2048, 2048}
}
I'm passing false
for useEsm
, 4096 for pointLightCubemapResolution
.