- 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.
- Java語言程序設計
- 劍指JVM:虛擬機實踐與性能調優(yōu)
- C++ Builder 6.0下OpenGL編程技術
- Magento 2 Development Cookbook
- Learning SQLite for iOS
- Java設計模式及實踐
- Drupal 8 Configuration Management
- Scala編程實戰(zhàn)(原書第2版)
- 劍指大數(shù)據(jù):企業(yè)級數(shù)據(jù)倉庫項目實戰(zhàn)(在線教育版)
- Mastering ArcGIS Enterprise Administration
- Visual Studio Code 權威指南
- Go語言開發(fā)實戰(zhàn)(慕課版)
- Scrapy網絡爬蟲實戰(zhàn)
- Arduino Electronics Blueprints
- Beginning C# 7 Hands-On:The Core Language