Browse Source

Set m_instanceId in VsOutput for EmissiveMaterial.azsl, otherwise there is invalid pipeline state because the pixel shader reads an attribute that is never written to in the vertex shader. (#613)

Signed-off-by: Tommy Walton <[email protected]>
Tommy Walton 2 years ago
parent
commit
d49eb4f682
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Materials/DynamicMaterialTest/EmissiveMaterial.azsl

+ 1 - 0
Materials/DynamicMaterialTest/EmissiveMaterial.azsl

@@ -65,6 +65,7 @@ VSOutput MainVS(VSInput IN, uint instanceId : SV_InstanceID)
     OUT.m_normal = IN.m_normal;
     OUT.m_tangent = IN.m_tangent;
     OUT.m_uv = IN.m_uv;
+    OUT.m_instanceId = instanceId;
     return OUT;
 }