|
|
|
|
|
|
|
|
|
|
if (_DebugLightingMode != 0) |
|
|
|
{ |
|
|
|
specularLighting = float3(0.0, 0.0, 0.0); // Disable specular lighting |
|
|
|
|
|
|
|
// Caution: _DebugLightingMode is used in other part of the code, don't do anything outside of |
|
|
|
// current cases |
|
|
|
specularLighting = float3(0.0, 0.0, 0.0); // Disable specular lighting |
|
|
|
specularLighting = float3(0.0, 0.0, 0.0); // Disable specular lighting |
|
|
|
//diffuseLighting = aoFactor.indirectSpecularOcclusion; |
|
|
|
diffuseLighting = aoFactor.indirectSpecularOcclusion; |
|
|
|
specularLighting = float3(0.0, 0.0, 0.0); // Disable specular lighting |
|
|
|
// diffuseLighting = lighting.indirect.specularTransmitted; |
|
|
|
// diffuseLighting = lighting.indirect.specularTransmitted; |
|
|
|
break; |
|
|
|
|
|
|
|
case DEBUGLIGHTINGMODE_SCREEN_SPACE_TRACING_REFLECTION: |
|
|
|
//if (_DebugLightingSubMode != DEBUGSCREENSPACETRACING_COLOR) |
|
|
|
// diffuseLighting = lighting.indirect.specularReflected; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|