Unity Shader 1.

Source: Internet
Author: User

1. What is shader

All rendering on Unity is do with Shaders-small scripts, configure the How the graphics hardware is SE T up for rendering.

Shader (shader) means the ability to use graphics hardware (GPU) to perform rendering work.

1.1 Surface Shader

Surface Shaders is your best option if your shader need to being affected by lights and shadows.

Note:do not use Surface shaders if your shader are not doing anything with lights.

1.2 Vertex and Fragment Shaders

When shader doesn ' t nedd-interact with lighting or you need some very exotic effects that the surface shaders can ' t Han Dle, and it comes with a price:you has to write more code and it's harder to make it interact with lighting.

1.3 Fixed Function Shaders

This type is shaders need to being written for old hardware, that doesn ' t support programmable shaders.

2. Materials and Shaders

Shaders contain code that define what kind of the properties and assets to use. Materials allow you to adjust properties and assign assets.

Follow-up supplement

Unity Shader 1.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.