官术网_书友最值得收藏!

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.

主站蜘蛛池模板: 肥乡县| 道孚县| 溧阳市| 绩溪县| 伊通| 新津县| 松阳县| 长武县| 蒙阴县| 自贡市| 苗栗市| 开鲁县| 蓝山县| 东乡| 夏邑县| 隆德县| 巨野县| 湟中县| 瓦房店市| 怀集县| 屯门区| 保德县| 永吉县| 伊金霍洛旗| 白水县| 怀集县| 平原县| 杭州市| 泗阳县| 垣曲县| 潞西市| 巴中市| 重庆市| 铜梁县| 义马市| 新干县| 凉城县| 疏附县| 武陟县| 铜梁县| 伊宁市|