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 /
  • Help Room /
avatar image
0
Question by TIV-Games · Jun 03, 2016 at 11:49 AM · shadersgraphicsmaterialsimage effects

Purpose of shaders?

Hello everyone, I know that there is shaders scripting language that has something to do with graphics, but I never understood almost anything about shaders. How much and what difference can be made with shaders, what do shaders change and do what can be improved with them? My question is: What can be done with shaders that can't be done with simple materials that have certain values for metallic and smoothness or image effects?? Thanks in advance.

Comment
Add comment · Show 1
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 Owen-Reynolds · Jun 03, 2016 at 12:49 PM 0
Share

Shaders weren't invented by Unity. Just google "shaders computer graphics" and read. It may take a while.

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by KristofferH · Jun 03, 2016 at 11:56 AM

A shader is the underlying code of the materials. So from your point of you shaders and material are practically the same thing.

A shader is a piece of code a programmer has written. A material is what an artist creates by setting different values for that shader.

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 TIV-Games · Jun 03, 2016 at 12:00 PM 0
Share

But I don't understand for what purpose one might need to program his own shader ins$$anonymous$$d of using material and modifying the values?

avatar image KristofferH TIV-Games · Jun 03, 2016 at 12:39 PM 0
Share

When the shaders that comes with Unity isn't enough to create the material/effect that you want, then you have to write your own shader, or get someone else to do it, or download one.

avatar image NoseKills TIV-Games · Jun 03, 2016 at 02:25 PM 0
Share

Few examples: Cartoon shaders that create outlines / contours around 3D models.

The car paints in rocket league or many other car games. I don't think you can create as nice of a glitter effect and definitely not a proper 'chameleon paint' with unity's default shaders.

The grass in Rocket League (Shaders are run on your GPU which can perform certain kind of tasks multiple times faster than your CPU which makes it possible to make particle systems with thousands of particles whereas creating (in Unity) thousands of GameObjects, like grass, would destroy performance)

avatar image
0

Answer by Zodiarc · Jun 03, 2016 at 02:15 PM

A shader tells the engine how to render a certain material. That's basically it.

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

6 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Is there any way to have 1 material with Texture2D property in its shader for many game objects with different sprite in the Sprite Renderer? 1 Answer

Can I tile a material differently on different objects instead of making a new material? 0 Answers

Is it possible to turn Depth Testing on/off for individual meshes sharing a material on a per-renderer basis? 0 Answers

Broken colors when updating from Unity 2017 to 2018 0 Answers

Transperent Side of a Texture becomes black in Shader PBR Graph 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