• 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
0
Question by GrayWoolsey · Nov 21, 2019 at 10:38 PM · terrainshadersgrassdetails

Custom Terrain Details Shader,Custom Detail Shader In 2019.2

https://assetstore.unity.com/packages/vfx/shaders/soft-grass-shader-63096

I dislike the default Unity Details shader for Terrain so I usually download this one of the Asset Store, however it doesn't seem to be working with Unity's new terrain system. I've tried any fix I can find but to no avail. I've renamed it to match Unity's default shader and I've downloaded the built in Unity shaders from the archives page. I just want to add a transparency gradient to grass so it's not as harsh. How can I find, edit, or override Unity's default details shader?

Comment
Add comment
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

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by Wappenull · Apr 13, 2020 at 06:20 PM

https://answers.unity.com/questions/1150302/how-can-i-overwrite-the-built-in-grass-shader.html


Confirmed still working on Unity 2019.

  1. Override "Hidden/TerrainEngine/Details/BillboardWavingDoublePass" shader by having your own version of shader in Assets folder. (Download from shader archive) Name inside shader file must matched. Filename can be any.

  2. When switching back to editor, grass/detail will still not change. You will have to do this trick mentioned in the link. Paint more detail, then Ctrl+Z. Once.

  3. Detail shader will now switched to your own version.

There are 3 reference of detail shader that terrain might use based on your grass setting. Try different one if it does not changed.

 Dependency "Details0"         = "Hidden/TerrainEngine/Details/Vertexlit"
 Dependency "Details1"         = "Hidden/TerrainEngine/Details/WavingDoublePass"
 Dependency "Details2"         = "Hidden/TerrainEngine/Details/BillboardWavingDoublePass"






Comment
Add comment · 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

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.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

152 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 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 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 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 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 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 avatar image avatar image

Related Questions

Detail brush not rendering correctly in game 1 Answer

How Do I Fix My Grass? 2 Answers

Terrain Grass Detail Texture Atlas 0 Answers

Problem with Terrain.SampleHeight 0 Answers

Hide Grass Details 1 Answer

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges