|
|
|
|
|
|
context.ExecuteCommandBuffer(setRT); |
|
|
|
} |
|
|
|
|
|
|
|
//TODO: Editor only?
|
|
|
|
if(!LightweightUtils.HasFlag(frameRenderingConfiguration, FrameRenderingConfiguration.DebugView)) |
|
|
|
ForwardPass(visibleLights, frameRenderingConfiguration, ref context, ref lightData, stereoEnabled); |
|
|
|
else |
|
|
|
|
|
|
case DebugViewMode.Normals: |
|
|
|
LightweightShaderUtils.SetDebugMode(cmd, DebugViewKeyword.NORMALS); |
|
|
|
break; |
|
|
|
case DebugViewMode.Roughness: |
|
|
|
LightweightShaderUtils.SetDebugMode(cmd, DebugViewKeyword.ROUGHNESS); |
|
|
|
case DebugViewMode.Smoothness: |
|
|
|
LightweightShaderUtils.SetDebugMode(cmd, DebugViewKeyword.SMOOTHNESS); |
|
|
|
break; |
|
|
|
} |
|
|
|
context.ExecuteCommandBuffer(cmd); |
|
|
|