Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 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
0
Question by ODINKONG · Mar 06, 2015 at 02:34 AM · shaderterrainunity5

unity 5 terrain shaders

Hi, I just moved my game to unity 5 and the terrain used to have a specular sparkle look to it in the light. It was sparkling sand. Now the specular shader looks incredibly flat. The terrain is not sparkling at all anymore. On top of that some particles wont render if they are close to the terrain. I know the shading was switched to PBR, but is there no way to get the sparkling effect back? also what shader should I use for a slash attack sprite that I want to alpha fade out. I was using particles alpha blend but this shader wont render in certain positions anymore...

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 ODINKONG · Mar 06, 2015 at 03:31 PM 0
Share

Is there really no way to get the terrain to be specular anymore? Any advice on this would be great.

avatar image ODINKONG · Mar 07, 2015 at 08:27 PM 0
Share

Is it possible to write or use my own shaders for the terrain? or even the old shaders from unit 4?

3 Replies

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by ODINKONG · Mar 07, 2015 at 10:04 PM

Ok I figured it out. I was using code to change the material type. The code in unity 4 for this only needs the line. terr.materialTemplate = (Material)Resources.Load ("materials/sand");

But in unity 5 I had to change it to this terr.materialType = Terrain.MaterialType.Custom; terr.materialTemplate = (Material)Resources.Load ("materials/sand"); just a simple API change

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

Answer by Avash · Mar 07, 2015 at 08:38 PM

No, there never has been and never will be. Jk you can add specular with an shader like Relief Terrain Pack or such. There never was a built in specular map support but a new terrain system has been confirmed: http://forum.unity3d.com/threads/official-new-terrain-system.255232/

Comment
Add comment · Show 1 · 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 ODINKONG · Mar 07, 2015 at 09:50 PM 0
Share

Ok that's awesome, but there was this shine on the bump map in unity 4 for the terrain that was present before and now its not. on the right is the sand I had In unity 4 and on the left is the sand I have now in unity 5. Its the same texture but its not shiny anymore. Is there a way to make it shiny in unity 5.

alt text

old-vs-new.png (271.5 kB)
avatar image
1

Answer by tanoshimi · Mar 07, 2015 at 10:54 PM

For the old v4 specular terrain shader, select Built-In Legacy Specular. And yes, you can write your own terrain shaders - select Custom.

alt text


terrain.jpg (35.1 kB)
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.

Follow this Question

Answers Answers and Comments

21 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

Related Questions

How to remove unwanted shine (smoothness) on terrain? 7 Answers

Shader for ZTest Between Terrain and Objects 0 Answers

Unity 5 Fog not working on Standard Shader Objects 3 Answers

Forward Rendering for Terrain, overriding the shader? 0 Answers

Adding layers to Unity Terrain ( 4, 8, 14) 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