Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by ExtremePowers · Mar 09, 2015 at 05:28 PM · unity 5shaderterrainmissing

Unable to find shaders used for the terrain engine.

This is the full error:

 Unable to find shaders used for the terrain engine. Please include Nature/Terrain/Diffuse shader in Graphics settings. 

This error is only in the build. This error has only occured to me in Unity 5.0, I also have tried doing as it says: alt text Without no results in the build. How can I fix this?

screenshot-2015-03-09-182637.png (25.3 kB)
Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image tanoshimi · Mar 09, 2015 at 06:08 PM 0
Share

Are you creating a terrain at runtime via script? It's unusual for the shaders used by any objects placed in the scene to not be included...

avatar image ExtremePowers · Mar 09, 2015 at 06:32 PM 0
Share

I am creating the terrain using Terrain.CreateTerrainGameObject(TerrainData);

1 Reply

· Add your reply
  • Sort: 
avatar image
9

Answer by mkturkeri · Mar 29, 2015 at 06:37 PM

Unity 5's terrain shaders are a bit changed. Before Unity 5, it was named as "Diffuse" but now it is "Standard". I believe you automatically created a terrain object and did not alter the materials. If so, the shader will be "Standard". Just in case importing all three shaders in Graphics Settings from the tab called Always Included Shaders for terrain will solve the problem.

Add these to the list;

Nature/Terrain/Standard (Only adding this solved the same problem for me)

Nature/Terrain/Diffuse

Nature/Terrain/Specular

That's it. It should work in build also now.

The problem here I believe, is the Debug Log generated by the build itself. It says "Diffuse", but if you look to the automatically created terrain material in the Editor, it is "Standard". That was true for 4.6, but not 5.0.

Comment
Add comment · Show 4 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image rakeshmalik91 · Apr 24, 2015 at 03:01 PM 0
Share

I don't know what was happening then... Today after I saw your answer I thought of checking that again and i don't know how it's working properly

avatar image nastasache · Sep 07, 2015 at 05:56 PM 0
Share

Thx, mktukeri. Works for me.

avatar image khroman · Dec 16, 2016 at 08:13 PM 0
Share

Thank you very much for this @mkturkeri. This solved my problem as well.

avatar image BrandonHill · Feb 18, 2017 at 10:37 PM 0
Share

This is actually the answer to a lot of "Terrain assetBundle missing textures/materials" questions too, I think.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

25 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Terrain billboard trees not dropping shadows. 2 Answers

Unlit terrain shader 0 Answers

unity 5 showing meshes through terrain 0 Answers

why cant i paint trees 1 Answer

Noob Question - Custom trees and aliasing 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges