Substrate on Blendable GBuffers displays Black in editor Unlit view mode.

When using Substrate materials with the Blendable GBuffer, the Unlit editor view mode just renders black.

Adding this to line 1895 of BasePassPixelShader.usf fixes the issue:

	#if USE_DEVELOPMENT_SHADERS
		TopLayerData.UnlitViewBaseColor = Export.BaseColor;
	#endif

[Attachment Removed]

Steps to Reproduce

  1. Set project to use Substrate Blendable GBuffer.
  2. Make a material, using a substrate slab BSDF.
  3. Change any viewport to unlit view mode with that material in it.
  4. Notice that the material appears black.
    [Attachment Removed]

Hi Mark,

Good catch on that! I confirmed that the unlit view mode is broken when using Substrate materials with a blendable GBuffer. I created a Jira ticket to track the integration of your proposed fix: https://issues.unrealengine.com/issue/UE\-370472\. Feel free to let me know if you have any more questions.

[Attachment Removed]