Failed to compile Landscape Material
Hi. I'm packaging my project for Android and PC and I have problems with the Landscape material. Here's what I get in the log.
MainFrameActions: Packaging (Android (ATC)): UE4Editor-Cmd: [2016.03.13-07.22.56:923][ 0]LogInit:Display: LogShaderCompilers:Warning: Failed to compile Material /Game/Environment/CityZone/Materials/MLandscapesCityZone.MLandscapesCityZone for platform GLSL_ES2, Default Material will be used in game.
Here's what the material is looking like:
asked Mar 13 '16 at 01:31 PM in Packaging & Deployment
Due to limitations of the mobile platform (ES2), you are only allowed 5 texture samples per material. However, if you are working on a high-end device that can utilize the Feature Level ES 3.1, then this material should compile without issues. This information comes directly from our materials for mobile documentation. Take a look at the link below for more information.
Materials for Mobile
What I suggest it using the Feature Level Switch node in the material editor so the material can correctly account for the associated mobile platform, and exclude any rendering features that are not supported.
Let me know if you have further questions or need additional assistance.
answered Mar 18 '16 at 03:47 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here