What is the "Unity-shaderlab primer" shader?

Source: Internet
Author: User

Shaderlab is an interface that Unity3d calls CG/HLSL/GLSL in its own package.

Shader related files (extensions):

  • Shader-Main file of the shader
  • Cg/cginc-Shader Common files, can be "include" in the Cg/shader/cginc file, generally used to write global methods and global variables, convenient for multiple shader file invocation.

Unity shader Classification (by means of implementation):

  • Fixed pipeline: A relatively old rendering means, low level of programming, unity officials are phasing out the technology, so it is recommended not to waste time learning this technology.
  • Surface Shader (Surface shader): A Shader, which is encapsulated by the standard vertex-fragment Shader, mainly optimizes the cross-platform type, but the corresponding performance and package are relatively larger.
  • Vertex-fragment Shader (vertex-element shader): The most programmable Shader, but also the most widely used Shader.

What is the "Unity-shaderlab primer" shader?

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.