Description

There is an material compile error when using a TexCoord node shared between two Texture samples.

The user provided a number of ways to work around the issue, but this issue becomes more problematic when using a more complex material and attempting to reduce instruction count by combining texture coordinates.

Error [SM5] Material.usf(1564,118): error X3004: undeclared identifier 'Local0'

Error [SM5] Material.usf(1564,53): error X3013: 'Texture2DSample': function does not take 3 parameters

Regression?
Yes, this error does not occur in 4.11.2 with the same material set up shown in the attached image.

Steps to Reproduce

1. Open attached project.
2. Open the M_Compile Error

Outcome
There is a material compile error when sharing a TexCoord between two TextureSamples

Expected
No shader compiler errors

Have Comments or More Details?

Head over to the existing Questions & Answers thread and let us know what's up.

0
Login to Vote

Fixed
ComponentUE - Graphics Features
Affects Versions4.124.12.1
Target Fix4.13
Fix Commit3016289
Main Commit3028922
CreatedJun 8, 2016
ResolvedJun 16, 2016
UpdatedMay 2, 2018
View Jira Issue