# Material Shader Error x3004 and x3014 with VertexColor node

**URL:** <https://forums.unrealengine.com/t/material-shader-error-x3004-and-x3014-with-vertexcolor-node/360559>\
**Category:** Rendering\
**Tags:** error, vertex-paint, unreal-engine, bug-report, question\
**Created:** [June 12, 2016, 8:09pm UTC](https://forums.unrealengine.com/t/material-shader-error-x3004-and-x3014-with-vertexcolor-node/360559 "2016-06-12T20:09:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Grogger](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Grogger](https://forums.unrealengine.com/u/Grogger)\
**Post date:** [June 12, 2016, 8:09pm UTC](https://forums.unrealengine.com/t/material-shader-error-x3004-and-x3014-with-vertexcolor-node/360559/1 "2016-06-12T20:09:03Z")

</div>

After converting my project from 4.9 to 4.12, there is a material with vertex painting that I can’t get to work.

I’m receiving the following errors in the stats:

![94378-shaderdebugerror4.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/5/8/e585a7189999cd7b90d22130b683d54617f3521b.jpeg)

and these with the shader debugging on:

![94379-shaderdebugerror.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/c/1/cc1afc81e560df6da4b39b663da4ce7f89b47475.jpeg)

![94380-shaderdebugerror2.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/f/2/ff2706a207a7fc1051bf99b682d23d72332d598e.jpeg)

![94391-shaderdebugerror3.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/5/5/055a009fbf5edfbd826bd0182e854198c67097d4.jpeg)

The problem seems to happen only when I connect the VertexColor node (replacing it with any scalar value doesn’t throw the error), in order to use vertex painting. This is the shader (MF\_Dirt is a material function using a bool switch, a WorldAlignedTexture node, and texture samples - no more screenshots available):

 ![94392-shaderdebugerror5.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/b/d/0bd8052866c4c29a32ac612d26bf22b1f300ef65.jpeg)

If anyone can help me make heads or tails of this, it would be greatly appreciated!

---

<div class="post-metadata">

**Author:** ![Grogger](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Grogger](https://forums.unrealengine.com/u/Grogger)\
**Post date:** [June 12, 2016, 9:05pm UTC](https://forums.unrealengine.com/t/material-shader-error-x3004-and-x3014-with-vertexcolor-node/360559/2 "2016-06-12T21:05:18Z")

</div>

I’ve discovered that changing the MatLayerBlend\_Standard node to MatLayerBlend\_Simple does NOT throw the error, though the result is not what I need it to be.

**Edit (worked around)**: This bug still exists, so I won’t mark it as resolved, but I have worked around it by using the Simple blend and manually recreating the blends for the pins I needed (it was just the specular pin that I needed)

---

<div class="post-metadata">

**Author:** ![Tim\_Hobson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tim\_Hobson](https://forums.unrealengine.com/u/Tim_Hobson)\
**Post date:** [June 14, 2016, 2:09pm UTC](https://forums.unrealengine.com/t/material-shader-error-x3004-and-x3014-with-vertexcolor-node/360559/3 "2016-06-14T14:09:50Z")

</div>

Hi Grogger,

We have a ticket in already with this particular error X3004 that was submitted with UE-31792.

Thank you for reporting.

Tim
