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.
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
Head over to the existing Questions & Answers thread and let us know what's up.
0 |
Component | UE - Graphics Features |
---|---|
Affects Versions | 4.12, 4.12.1 |
Target Fix | 4.13 |
Fix Commit | 3016289 |
---|---|
Main Commit | 3028922 |
Created | Jun 8, 2016 |
---|---|
Resolved | Jun 16, 2016 |
Updated | May 2, 2018 |