Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 AnatolyDream · Feb 01, 2017 at 08:37 AM · shadersbillboard

How to make a billboard shader?

Hi!

For the past few days, I've been trying to find any information on how to make a billboard shader. I've searched Unity Forums and Unity Answers as well, but all the answers either suggest using scripts to rotate planes (which is a bad idea) or following this tutorial (which doesn't work for me at all).

I don't know anything about shaders and how to write them. All I need is a shader that will force a plane with a texture to always face the camera. I need this for my custom grass and flowers. So, if anyone knows where to find or how to make a billboard shader, please let me know. I'll appreciate any help.

Thank you!

Comment
Add comment · Show 7
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 AnatolyDream · Feb 03, 2017 at 06:40 AM 0
Share

Anyone...? At least suggest a good tutorial that works (not like the one I mentioned above).

avatar image tanoshimi · Feb 03, 2017 at 07:00 AM 0
Share

Perhaps if you explained why you had problems following the tutorial code it would be easier to help you.

avatar image AnatolyDream tanoshimi · Feb 03, 2017 at 07:31 AM 0
Share

Hi, @tanoshimi. When I apply that shader to an object, the object becomes invisible. Time to time it appears if I look at it from a certain angle, but then it disappears again. I tried changing values that they mention (for planes or for cubes), but that didn't help at all. Also, from the link that @AR_Rizvi has provided, I can see that others are having issues with that 'tutorial' too.

avatar image tanoshimi AnatolyDream · Feb 03, 2017 at 07:41 AM 0
Share

That sounds like you've got dynamic batching enabled, which will obviously break per-mesh billboarding as already pointed out in that thread.

Show more comments
Show more comments
avatar image AnatolyDream · Feb 03, 2017 at 07:57 AM 0
Share

@tanoshimi, my grass is not too dense and right now it doesn't affect performance at all. However, I still want to add LOD level with a bilboard version. This will be more useful for my flowers than for the grass.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by AR_Rizvi · Feb 03, 2017 at 07:08 AM

Here are some very useful links this would help

And this

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 AnatolyDream · Feb 03, 2017 at 07:33 AM 0
Share

I think that Billboard Shader Pack is not compatible with Unity 5+

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

95 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

Related Questions

My shader doesn't work if I use the same material for multiple objects with the same texture. 1 Answer

how to draw billboards grass with alpha? 0 Answers

Need help with billboard shader 0 Answers

Using Shaders in Voxel Engines (With Procedural Meshes) 1 Answer

Shader has uv seams 0 Answers


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