- 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.
- 黑客攻防從入門到精通(實戰秘笈版)
- Android Jetpack開發:原理解析與應用實戰
- Spring技術內幕:深入解析Spring架構與設計
- 深入淺出Prometheus:原理、應用、源碼與拓展詳解
- C語言實驗指導及習題解析
- Linux Device Drivers Development
- AppInventor實踐教程:Android智能應用開發前傳
- Spring快速入門
- Python算法詳解
- Python語言實用教程
- Swift 4 Protocol-Oriented Programming(Third Edition)
- Fast Data Processing with Spark(Second Edition)
- HTML+CSS+JavaScript編程入門指南(全2冊)
- SQL Server 2016 從入門到實戰(視頻教學版)
- 深度探索Go語言:對象模型與runtime的原理特性及應用