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?