• 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 echuang98 · Feb 06, 2016 at 03:22 PM · shadermeshvertexvertex shaderwireframe

Create a Wireframe Shader with Shader Forge

Hello, I 've made a procedural mesh which moves like this video: https://www.youtube.com/watch?v=V2zzUbfcnQU&list=LLLxo8D3kLk4LTu_WjRWWPjw

It only has the default material now. I want to make it look like this picture: alt text I think giving it a custom wireframe-effect shader and material will work (, right?) So I want to create a wireframe shader with Shader Forge. However I don't really know where to start. :-( I think some keyword might be VertexColor, Alpha, and so on? So I am here to ask for any clues or tutorials.

Also, it seems that there is another way to make this moving wireframe terrain-- Write a wireframe shader whose vertices' position will change (I think it's called vertex shader, right?) and apply it to a plane mesh, instead of creating a mesh and moving its vertices via the Mesh class scripts (which is what I am doing now). Which way do you think is better? And please give me some instruction! Thanks for your help!

wireframe.jpg (107.4 kB)
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 tanoshimi · Feb 06, 2016 at 04:04 PM

Unity Answers is not a good site to ask for clues or tutorials - it's generally intended for specific technical questions and there's s lot of material to cover if you've never looked at shaders before.

If you want to understand what a vertex shader is, how colour gets applied etc. I recommend you look at https://en.m.wikibooks.org/wiki/Cg_Programming/Unity

If you simply want to get a wireframe effect in your built game, I recommend you look on the asset store - there's at least two options there I'm aware of and they'll be much quicker to implement than rolling your own.

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 echuang98 · Feb 08, 2016 at 02:08 AM 0
Share

Thank you! :)

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

49 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

Related Questions

Changes to Mesh Vertex Colors Reset on Build 1 Answer

Mesh triangles don't match wireframe view? 0 Answers

Modify vertex position using shaders on Windows Phone 8 0 Answers

How does appdata_base work? 0 Answers

Vertex shader breaks render to texture - camera preview and render texture not the same 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