- 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.
- TypeScript入門與實(shí)戰(zhàn)
- Objective-C Memory Management Essentials
- 數(shù)據(jù)庫(kù)原理及應(yīng)用(Access版)第3版
- 自己動(dòng)手實(shí)現(xiàn)Lua:虛擬機(jī)、編譯器和標(biāo)準(zhǔn)庫(kù)
- Flask Web開發(fā)入門、進(jìn)階與實(shí)戰(zhàn)
- The Data Visualization Workshop
- C++寶典
- Spring Boot+MVC實(shí)戰(zhàn)指南
- 實(shí)戰(zhàn)Python網(wǎng)絡(luò)爬蟲
- C語(yǔ)言程序設(shè)計(jì)與應(yīng)用實(shí)驗(yàn)指導(dǎo)書(第2版)
- Mastering Node.js
- Java Web 從入門到項(xiàng)目實(shí)踐(超值版)
- HoloLens Blueprints
- Data Visualization:Representing Information on Modern Web
- MEAN Blueprints