- Unity 2018 Shaders and Effects Cookbook
- John P. Doran Alan Zucconi
- 251字
- 2021-06-18 19:04:06
Conventions used
There are a number of text conventions used throughout this book.
CodeInText: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "A Unity package is a single file that contains various Assets that can be used in Unity in a similar manner to a .zip file."
A block of code is set as follows:
Properties
{
_MainTex("Texture", 2D) = "white"
}
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
void surf (Input IN, inout SurfaceOutputStandard o) {
// Use the tint provided as the base color for the material
o.Albedo = _MainTint;
// Get the normal data out of the normal map texture
// using the UnpackNormal function
float3 normalMap = UnpackNormal(tex2D(_NormalTex,
IN.uv_NormalTex));
normalMap.x *= _NormalMapIntensity;
normalMap.y *= _NormalMapIntensity;
// Apply the new normal to the lighting model
o.Normal = normalize(normalMap.rgb);
}
Bold: Indicates a new term, an important word, or words that you see onscreen. For example, words in menus or dialog boxes appear in the text like this. Here is an example: "To finally bake the lights, open the Lighting window by going to Window | Lighting | Settings. Once there, select the Global Maps tab."
Warnings or important notes appear like this.
Tips and tricks appear like this.
- 測試驅動開發:入門、實戰與進階
- C++ Builder 6.0下OpenGL編程技術
- 趣學Python算法100例
- 零基礎學MQL:基于EA的自動化交易編程
- Java程序設計
- Symfony2 Essentials
- C++從入門到精通(第5版)
- Machine Learning in Java
- ElasticSearch Cookbook(Second Edition)
- Mobile Device Exploitation Cookbook
- Machine Learning With Go
- 深入淺出Python數據分析
- 深度學習入門:基于Python的理論與實現
- 3D Printing Designs:Octopus Pencil Holder
- INSTANT LESS CSS Preprocessor How-to