Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

What it is?

Discussion in 'Shaders' started by hmchenaran-s, Aug 29, 2013.

  1. hmchenaran-s

    hmchenaran-s

    Joined:
    Aug 29, 2013
    Posts:
    7
    hi
    1 - Someone knows something about "Albedo" In Shaders
    2 - Someone has information on the types of shaders

    Sorry for the question I posed here.

    Thanks
     
  2. tanoshimi

    tanoshimi

    Joined:
    May 21, 2013
    Posts:
    297
    Hi,

    1. The "Albedo" property defines the base diffuse colour used by a surface shader. It plays a similar role to _MainTex used in vertex/fragment shaders.

    2. There are several types of shaders:
    - Fixed Function shaders, which are written entirely in shaderlab code. These are specific to Unity, and you can find more information at http://docs.unity3d.com/Documentation/Manual/ShaderTut1.html
    - Vertex/Fragment shaders, which are normally written in CG code and exposed to Unity through shaderlab. CG is a common language developed by NVidia and is used by many different rendering programs. It is also similar to the HLSL language used to write shaders in Microsoft environments. You can find plenty of books on HLSL/CG on Amazon, say, or this excellent wikibook: http://en.wikibooks.org/wiki/Cg_Programming/Unity
    - Surface shaders, which are sort of like a "wizard"/"template" which can be used to make creation of vertex/fragment shaders more straightforward. They still ultimately create pixel/fragment shader programs, but they handle some of the more complex routines for you regarding lighting, passes etc. More information at http://docs.unity3d.com/Documentation/Components/SL-SurfaceShaders.html