- Unity 2018 Shaders and Effects Cookbook
- John P. Doran Alan Zucconi
- 191字
- 2021-06-18 19:04:13
There's more...
The source code of the built-in shaders is typically hidden in Unity. You cannot open this from the editor as you do with your own shaders. For more information on where to find a large portion of the built-in Cg functions for Unity, go to your Unity install directory and navigate to the Editor | Data | CGIncludes folder:

In this folder, you can find the source code of the shaders shipped with Unity. Over time, they have changed a lot; you can visit the Unity download archive (https://unity3d.com/get-unity/download/archive) if you need to access the source codes of a shader used in a different version of Unity. After choosing the right version, select Built in shaders from the drop-down list, as shown in the following screenshot:

There are three files that are of note at this point: UnityCG.cginc, Lighting.cginc, and UnityShaderVariables.cginc. Our current shader is making use of all these files at the moment. In Chapter 11, Advanced Shading Techniques, we will explore in depth how to use CGInclude for a modular approach to shader coding.
- 深入核心的敏捷開發(fā):ThoughtWorks五大關(guān)鍵實(shí)踐
- Fundamentals of Linux
- Visual Basic程序設(shè)計(jì)(第3版):學(xué)習(xí)指導(dǎo)與練習(xí)
- C#程序設(shè)計(jì)(慕課版)
- 征服RIA
- The Data Visualization Workshop
- QGIS By Example
- R Deep Learning Cookbook
- Python深度學(xué)習(xí):模型、方法與實(shí)現(xiàn)
- 算法秘籍
- Java程序設(shè)計(jì)教程
- Clojure for Finance
- 用Python動手學(xué)統(tǒng)計(jì)學(xué)
- 深入理解Zabbix監(jiān)控系統(tǒng)
- 計(jì)算機(jī)輔助設(shè)計(jì)與繪圖技術(shù)(AutoCAD 2014教程)(第三版)