|
|
|
|
|
|
else |
|
|
|
{ |
|
|
|
// If SSS is disable, do lighting for both split lighting and no split lighting
|
|
|
|
if (debugDisplaySettings.renderingDebugSettings.enableSSSAndTransmission) |
|
|
|
if (!debugDisplaySettings.renderingDebugSettings.enableSSSAndTransmission) |
|
|
|
{ |
|
|
|
m_SingleDeferredMaterialSRT.SetInt("_StencilRef", (int)StencilLightingUsage.NoLighting); |
|
|
|
m_SingleDeferredMaterialSRT.SetInt("_StencilCmp", (int)CompareFunction.NotEqual); |
|
|
|
|
|
|
else |
|
|
|
{ |
|
|
|
// If SSS is disable, do lighting for both split lighting and no split lighting
|
|
|
|
if (debugDisplaySettings.renderingDebugSettings.enableSSSAndTransmission) |
|
|
|
if (!debugDisplaySettings.renderingDebugSettings.enableSSSAndTransmission) |
|
|
|
m_DeferredDirectMaterialSRT.SetInt("_StencilRef", (int)StencilLightingUsage.NoLighting); |
|
|
|
m_DeferredDirectMaterialSRT.SetInt("_StencilCmp", (int)CompareFunction.NotEqual); |
|
|
|
m_DeferredIndirectMaterialSRT.SetInt("_StencilRef", (int)StencilLightingUsage.NoLighting); |
|
|
|
m_DeferredIndirectMaterialSRT.SetInt("_StencilCmp", (int)CompareFunction.NotEqual); |
|
|
|
m_DeferredIndirectMaterialSRT.SetInt("_StencilRef", (int)StencilLightingUsage.RegularLighting); |
|
|
|
m_DeferredIndirectMaterialSRT.SetInt("_StencilCmp", (int)CompareFunction.Equal); |
|
|
|
m_DeferredDirectMaterialSRT.SetInt("_StencilRef", (int)StencilLightingUsage.RegularLighting); |
|
|
|
m_DeferredDirectMaterialSRT.SetInt("_StencilCmp", (int)CompareFunction.Equal); |
|
|
|
|
|
|
|
m_DeferredIndirectMaterialSRT.SetInt("_StencilRef", (int)StencilLightingUsage.RegularLighting); |
|
|
|
m_DeferredIndirectMaterialSRT.SetInt("_StencilCmp", (int)CompareFunction.Equal); |
|
|
|
|
|
|
else |
|
|
|
{ |
|
|
|
// If SSS is disable, do lighting for both split lighting and no split lighting
|
|
|
|
if (debugDisplaySettings.renderingDebugSettings.enableSSSAndTransmission) |
|
|
|
if (!debugDisplaySettings.renderingDebugSettings.enableSSSAndTransmission) |
|
|
|
{ |
|
|
|
m_DeferredAllMaterialSRT.SetInt("_StencilRef", (int)StencilLightingUsage.NoLighting); |
|
|
|
m_DeferredAllMaterialSRT.SetInt("_StencilCmp", (int)CompareFunction.NotEqual); |
|
|
|