Fixing Error x3004 in UE4 for Deferred Decal Materials (4.23)

Image for post
Image for post
Image for post
Image for post
Image for post
Image for post
m

In version 4.23 of Unreal Engine, you will most likely be presented with “/Engine/Generated/Material.ush(1964,56–152): error x3004: undeclared identifier ´TextureExternalSample_Decal`” if you try to sample a Media Texture in a Material configured for Deferred Decals with a Translucened Blend Mode.

To work around this issue, we’ve found, that configuring the Sampler Node to consider Mip Map Level Inputs and overriding the default Level with 0, the material compiles without any issues.

Image for post
Image for post

Originally published at https://biq.solutions on December 24, 2019.

Written by

Today’s impossible, will be tomorrow’s reality. https://think-biq.com

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store