• 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 Mr_Happy_Pixel · Mar 16, 2018 at 03:54 PM · shaderterrainfixdepthmaskhole

terrain hole shader needs fixing

First and fore-most ,I do not own these shaders.
With that out of the way , I found an almost working terrain hole shader here it works fine and makes good looking holes when pared with the depth mask shader (on the same blog), but passed the fourth textuer you add to your terrain all the textures are black.
Is there a fix ? , I tried to contact the maker of the shader but couldnt.
I have found other terrain shaders that can have more that four textures like this one.

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
0

Answer by r35 · Mar 18, 2018 at 05:12 PM

Textures 1-4 rendered with FirstPassShader

Textures 5-8 rendered with AddPassShader (if necessary)

Textures 9-12 rendered with AddPassShader (if necessary)

etc…

.

conclusion: You need to edit the RenderQueue of AddPassShader too.

Comment
Add comment · Show 3 · 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 Mr_Happy_Pixel · Mar 19, 2018 at 03:34 PM 0
Share

I suppose I will try that,but I don't see how that will fix black textures

avatar image Mr_Happy_Pixel · Mar 20, 2018 at 12:56 PM 0
Share

Did not work at all

avatar image r35 Mr_Happy_Pixel · Mar 20, 2018 at 01:49 PM 0
Share

Download 'Built in shaders' of your unity version here.

https://unity3d.com/get-unity/download/archive

Extract and edit the following : \DefaultResourcesExtra\TerrainShaders\Splats\AddPass.shader

"Queue" = "Geometry-99" -> "Queue" = "Geometry+101" (later than your firstpass)

Import the whole folder structure and edited shader to project. (\DefaultResourcesExtra\TerrainShaders\Splats)

Restart of unity might be needed.

Tell me you still see the black carpet,

vote me up if problem solved.

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

138 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

Related Questions

How to change terrain shader 0 Answers

Does anyone know how to implement these depth-mask shaders? 1 Answer

Making Cave system in Unity 5 0 Answers

Unity 5 make Holes in the Terrain 2 Answers

Changing Replacement Shaders at Runtime 2 Answers

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