“Shader Forge has completely changed my outlook on working with Unity; As an artist, having the power to create my own shaders without learning code is an absolute must, and with SF I discovered a tool that goes above and beyond every other node-based editor”
Robert Briscoe, artist & designer on Dear Esther

鎼滅储妗


Eng - 绠浣撳瓧 - 姝i珨瀛
鍏ラ棬鏁欑▼
Main 锛堜富瑕侊級
杩欐槸鎮ㄧ殑鎵鏈夊叾浠栬妭鐐规渶缁堝皢閾炬帴鍒扮殑鑺傜偣銆傚畠鎷ユ湁涓轰笉鍚岀洰鐨勬湇鍔$殑澶氫釜杈撳叆銆
浠ヤ笅鍔ㄧ敾鍥惧儚鏄剧ず鎵鏈夎緭鍏ュ強鍏堕殢鏃堕棿鍙樺寲鐨勮涓恒傚ぇ閮ㄥ垎杈撳叆浼氬湪 0 鍜 1锛堥粦鑹插拰鐧借壊锛変箣闂存潵鍥炵粯鍒跺姩鐢汇

Diffuse 锛堟极鍙嶅皠锛
杩欐槸鐫鑹插櫒鐨勪富瑕侀鑹层傛极鍙嶅皠棰滆壊灏嗘牴鎹嚭鍏夌殑娉曠嚎瑙掑害鎺ユ敹鍏夌嚎鎴栬“鍑忓厜绾匡紝浠ュ強琚槾褰遍伄缃┿

Diffuse Power (婕弽灏勫姏閬)
杩欐槸鍏夋硶绾胯搴﹁“鍑忕殑鎸囨暟銆傚彲鍦ㄤ娇鐢ㄥぇ浜 1 鐨勫兼椂鑾峰緱棰濆鐨勯噾灞炲瑙傘傝娉ㄦ剰锛屾棤璁轰綍鏃跺惎鐢紝瀹冮兘鐩稿綋娑堣楁晥鑳姐

Specular 锛堥暅闈㈠弽灏勶級
杩欐槸鐫鑹插櫒闀滈潰楂樺厜鐨勯鑹层傚艰秺楂樺氨瓒婃槑浜紝榛戣壊瀹屽叏涓嶅彈鐫鑹插櫒褰卞搷銆

Gloss 锛堝厜娉斤級
杩欐槸闀滈潰楂樺厜鐨勬寚鏁般傚艰秺楂樺厜娉藉害瓒婇珮锛屽艰秼杩戜簬 0 鏃跺皢鍙樺緱娌℃湁鍏夋辰銆傝娉ㄦ剰锛屽鏋滄偍鍙栨秷閫変腑鍏夋辰閲嶆槧灏勶紝鍒欏簲閬垮厤浣跨敤浣庝簬 1 鐨勫厜娉藉笺

Normal 锛堟硶绾匡級
杩欐槸鍒囩嚎绌洪棿娉曠嚎鏂瑰悜锛屾偍鍙湪姝よ繛鎺ユ硶绾胯创鍥炬垨鑷畾涔夋硶绾垮悜閲忋

Emission 锛堣嚜鍙戝厜锛
杩欐槸鏃犺鍏夌収鏉′欢濡備綍濮嬬粓閮戒細娣诲姞鍒扮潃鑹插櫒鐨勫厜绾裤

Transmission 锛堥忓皠锛
姝ら夐」鍦ㄥ厜婧愪綅浜庡綋鍓嶆覆鏌撶殑琛ㄩ潰鑳屽悗鏃舵帶鍒舵湁澶氬皯鍏夌嚎鍙互閫氳繃銆傝繖瀵逛簬钖勫瀷鏉愭枡鍗佸垎鏈夌敤锛屼緥濡傚竷鏂欐垨妞嶈銆

Light Wrapping 锛堢幆缁曞厜锛
杩欐槸鎺у埗鍑哄厜娉曠嚎瑙掑害琛板噺鍋忕Щ鐨勪竴绉嶆柟娉曪紝鍙敤浜庤幏寰椾笌娆¤〃闈㈡暎灏勭浉浼肩殑鏁堟灉銆傚浜庡钩婊戝璞℃渶鏈夌敤銆傝緭鍏ュ亸绾㈣壊鐨勫煎皢璁╃孩鑹查氶亾姣斿叾浠栭氶亾鏇村鍦扳滅幆缁曗濆璞★紝杩欐牱鐪嬭捣鏉ュ氨鍍忔槸鍏夌嚎浼犻掑埌缃戞牸涓苟鎼哄甫绾㈣壊娉㈤暱鍑烘潵锛屼笌閬僵鐨偆鐨勬柟娉曠被浼笺

Diffuse Ambient Light 锛堟极鍙嶅皠鐜鍏夛級
姝ら夐」灏嗗厜绾挎坊鍔犲埌鐫鑹插櫒锛屽彈婕弽灏勫奖鍝嶃傚彲浠ヤ笌绔嬫柟浣撹创鍥撅紙浣跨敤鍩轰簬鍥惧儚鐨勫厜鐓 (IBL) 鐨勬硶绾挎柟鍚戯級鎴栫幆澧冨厜绛変竴璧蜂娇鐢

Specular Ambient Light 锛堥暅闈㈠弽灏勭幆澧冨厜锛
姝ら夐」灏嗗厜绾挎坊鍔犲埌鐫鑹插櫒锛屽彈闀滈潰鍙嶅皠褰卞搷銆傚彲浠ヤ笌绔嬫柟浣撹创鍥撅紙浣跨敤鍩轰簬鍥惧儚鐨勫厜鐓 (IBL) 鐨勮鍥惧弽灏勬柟鍚戯級绛変竴璧蜂娇鐢

Diffuse Ambient Occlusion 锛堟极鍙嶅皠鐜鍏夐伄钄斤級
姝ら夐」鎶戝埗闂存帴婕弽灏勫厜绾匡紝渚嬪鍏夋帰澶淬侀棿鎺ュ厜绾垮拰婕弽灏勭幆澧冨厜

Specular Ambient Occlusion 锛堥暅闈㈠弽灏勭幆澧冨厜閬斀锛
姝ら夐」鍙姂鍒堕棿鎺ラ暅闈㈠弽灏勫厜绾匡紝渚嬪鍙嶅皠鎺㈠ご鍜岄暅闈㈠弽灏勭幆澧冨厜

Custom Lighting 锛堣嚜瀹氫箟鐓ф槑锛
姝よ緭鍏ュ湪鐫鑹插櫒璁剧疆涓轰笉鎵撳厜鏃跺浜庢椿鍔ㄧ姸鎬侊紝鍙鎮ㄥ畾涔夎嚜瀹氫箟鐓ф槑琛屼负銆傛偍鍦ㄦ澶勬牴鎹厜绾挎斁缃妭鐐广

Opacity 锛堜笉閫忔槑搴︼級
Opacity锛堜笉閫忔槑搴︼級鎺у埗鏈缁堝儚绱犵殑閫忔槑搴︺傝娉ㄦ剰锛岄儴鍒嗛忔槑搴﹂氬父寰堥毦璁剧疆姝g‘锛岀壒鍒槸鍦ㄤ娇鐢ㄥ欢杩熸覆鏌撴椂銆

Opacity Clip 锛堜笉閫忔槑搴﹀壀鍒囷級
Opacity Clip锛堜笉閫忔槑搴﹀壀鍒囷級鏄帶鍒舵槸鍚﹀簲璇ョ粯鍒跺綋鍓嶅儚绱/鐗囨鐨勪竴绉嶆柟娉曘傚缁堝闇瑕侀忔槑搴︾殑瀵硅薄浣跨敤纭壀鍒囷紝浣嗕笉瑕佸閮ㄥ垎閫忔槑搴︿娇鐢ㄧ‖鍓垏锛屽洜涓 Opacity Clip锛堜笉閫忔槑搴﹀壀鍒囷級鍙互杞绘澗鎺掑簭锛屼絾鏄 Opacity锛堜笉閫忔槑搴︼級涓嶅彲浠ャ

Refraction 锛堝弽灏勶級
Refraction锛堝弽灏勶級鏄敤浜庢姌灏勮儗鏅儚绱犵殑灞忓箷绌洪棿 UV 鍋忕Щ銆傝纭繚鍦ㄤ娇鐢ㄥ墠灏 Opacity锛堜笉閫忔槑搴︼級璁剧疆涓轰綆浜 1 鐨勫硷紝浠ヤ究鎶樺皠鏁堟灉鍙銆

Outline Width 锛堟弿杈瑰搴︼級
姝ら夐」灏嗗悜鐫鑹插櫒娣诲姞鎻忚竟锛屾覆鏌撲负鍏锋湁鍙嶉潰娉曠嚎鐨勫亸绉荤綉鏍笺傝娉ㄦ剰锛岀‖杈瑰皢鎹熷潖鎻忚竟銆

Outline Color 锛堟弿杈归鑹诧級
姝ら夐」鎺у埗鎻忚竟鐨勯鑹层

Vertex Offset 锛堥《鐐瑰亸绉伙級
姝ら夐」鍙敤浜庨殢鏃堕棿鍙樺寲瀵圭潃鑹插櫒杩涜鍔ㄧ敾锛屾垨鍦ㄤ笉鍚屾潯浠朵笅鏇存敼瀵硅薄鐨勫舰鐘躲傛偍鍙渶鎻掑叆姣忎釜椤剁偣鎵闇鍋忕Щ閲忕殑 XYZ 鍧愭爣鍗冲彲銆

DX11 Displacement 锛圖X11 浣嶇Щ锛
姝ら夐」鍜 Vertex Offset锛堥《鐐瑰亸绉伙級鐨勪綔鐢ㄩ潪甯哥被浼硷紝浣嗘槸涓 DX11 鏇查潰缁嗗垎涓璧蜂娇鐢ㄣ傦紙璇锋敞鎰忥紝DirectX 浠呴傜敤浜 Windows锛岄渶瑕 DX11 GPU 涓斿繀椤诲湪 Unity 璁剧疆涓惎鐢級

DX11 Tessellation 锛圖X11 鏇查潰缁嗗垎锛
姝ら夐」鎺у埗鎮ㄨ灏嗕笁瑙掑舰鍒嗗壊涓哄灏戜釜缁嗗垎銆傦紙璇锋敞鎰忥紝DirectX 浠呴傜敤浜 Windows锛岄渶瑕 DX11 GPU 涓斿繀椤诲湪 Unity 璁剧疆涓惎鐢級

Add (鍔犳硶)
A + LMB
杈撳嚭 [A] + [B] 涔嬪拰
Subtract (鍑忔硶)
S + LMB
杈撳嚭 [A] - [B] 涔嬪樊
Multiply (涔樻硶)
M + LMB
杈撳嚭 [A] * [B] 涔嬬Н
Divide (闄ゆ硶)
D + LMB
杈撳嚭 [A] / [B] 涔嬪晢
Power (涔樻柟)
E + LMB
杈撳嚭 [Val] ^ [Exp] 涔嬪箓
Sqrt (骞虫柟鏍)
杈撳嚭鍏惰緭鍏ョ殑骞虫柟鏍
Log (瀵规暟)
杈撳嚭鍏惰緭鍏ョ殑瀵规暟銆傛偍鍙互鍦ㄤ笅鎷夎彍鍗曚腑鍒囨崲瀵规暟搴
Min (鏈灏忓)
杈撳嚭 [A] 鍜 [B] 鐨勬渶灏忓
Max (鏈澶у)
杈撳嚭 [A] 鍜 [B] 鐨勬渶澶у
Abs 锛堢粷瀵瑰硷級
杈撳嚭鍏惰緭鍏ョ殑缁濆鍊笺傚畠瀹炶川涓婅璐熷煎彉涓烘鍊
Sign 锛堟璐熼浂鍙栧硷級
杈撳嚭鍏惰緭鍏ョ殑绗﹀彿銆
鍊煎ぇ浜 0 鏃惰緭鍑 1
鍊肩瓑浜 0 鏃惰緭鍑 0
鍊煎皬浜 0 鏃惰緭鍑 -1
Ceil 锛堣繘浣嶅彇鏁达級
杈撳嚭鏃跺皢鍏惰緭鍏ュ悜涓婅垗鍏ヤ负鏈杩戞暣鏁
Round 锛堝洓鑸嶄簲鍏ュ彇鏁达級
杈撳嚭鏃跺皢鍏惰緭鍏ュ洓鑸嶄簲鍏ヤ负鏈杩戞暣鏁
Floor 锛堣垗浣嶅彇鏁达級
杈撳嚭鏃跺皢鍏惰緭鍏ュ悜涓嬭垗鍏ヤ负鏈杩戞暣鏁
Trunc 锛堝彇鏁达級
杈撳嚭鏃跺皢鍏惰緭鍏ュ悜闆跺洓鑸嶄簲鍏ュ埌鏈杩戞暣鏁般傚畠瀹炶川涓婂幓鎺夊皬鏁帮紝鐣欎笅鏁存暟
Step (A <= B) 锛堟瘮杈 (A <= B)锛
濡傛灉 [A] 灏忎簬鎴栫瓑浜 [B]锛屽垯杈撳嚭 1锛屽惁鍒欒緭鍑 0
If 锛堟潯浠讹級
I + LMB
[A] 澶т簬 [B] 鏃讹紝杈撳嚭 [A>B] 杈撳叆
[A] 绛変簬 [B] 鏃讹紝杈撳嚭 [A=B] 杈撳叆
[A] 灏忎簬 [B] 鏃讹紝杈撳嚭 [A<B] 杈撳叆
Frac 锛堝彇灏忔暟锛
杈撳嚭鍏惰緭鍏ョ殑灏忔暟閮ㄥ垎銆傚畠瀹炶川涓婄Щ闄ゆ暣鏁伴儴鍒嗭紝浠呬繚鐣欏皬鏁伴儴鍒嗐傚鏋滆緭鍏ヤ负 4.32锛屽垯浼氳緭鍑 0.32銆傛鑺傜偣鍦ㄤ笌 Time锛堟椂闂达級鑺傜偣涓璧蜂娇鐢ㄦ椂闈炲父鏈夌敤锛屼細闅忔椂闂村彉鍖栧甫鏉ラ敮榻挎尝
Fmod 锛堝彇妯★級
杈撳嚭 [A] 闄や互 [B] 鐨勪綑鏁
Clamp 锛堣寖鍥达級
杈撳嚭鍏朵富杈撳叆鐨勫硷紝涓嶅皬浜 [Min] 涓斾笉澶т簬 [Max]
Clamp (Simple) 锛堣寖鍥达紙绠鍗曪級锛
璺 Clamp锛堣寖鍥达級涓鏍凤紝浣嗕负鏈灏忓煎拰鏈澶у间娇鐢ㄦ暟瀛楄緭鍏ワ紝鑰屼笉浣跨敤鑺傜偣鎺ュ彛
Clamp 0-1 锛堣寖鍥 0-1锛
杈撳嚭鍏惰緭鍏ュ硷紝涓嶅皬浜 0 涓斾笉澶т簬 1
Lerp 锛堢嚎鎬ф彃鍊硷級
L + LMB
Lerp锛堢嚎鎬ф彃鍊硷級鐢ㄤ簬娣峰悎涓や釜鍊兼垨棰滆壊銆
濡傛灉 [T] 涓 0锛屽垯灏嗚緭鍑 A
濡傛灉 [T] 涓 0.5锛屽垯灏嗚緭鍏 [A] 鍜 [B] 鐨勫垎鍗婃贩鍚
濡傛灉 [T] 涓1锛屽垯灏嗚緭鍑 B
濡傛灉 [T] 涓轰袱鑰呴棿鐨勪换涓鍊硷紝鍒欏皢杈撳叆涓よ呯殑绾挎ф贩鍚堛
Lerp (Simple) 锛堢嚎鎬ф彃鍊硷紙绠鍗曪級锛
涓 Lerp锛堢嚎鎬ф彃鍊硷級涓鏍凤紝浣嗕负 [A] 鍜 [B] 浣跨敤鏁板瓧杈撳叆锛岃屼笉浣跨敤鑺傜偣鎺ュ彛
Posterize 锛堣壊璋冨垎绂伙級
鍩轰簬缁忚繃 [Steps] 鐨勫煎鍊艰繘琛屽洓鑸嶄簲鍏ュ彇鏁淬俒Steps] 鍊间负 5 鏃跺皢鍦 0 鍒 1 鐨勮寖鍥村唴鍒涘缓 5 娈
Blend 锛堟贩鍚堬級
B + LMB
浣跨敤鎸囧畾鏂规硶娣峰悎 [A] 鍜 [B]
Remap 锛堥噸鏄犲皠锛
灏嗗间粠涓涓寖鍥撮噸鏄犲皠鍒板彟涓涓寖鍥淬備笌 Remap (Simple)锛堥噸鏄犲皠锛堢畝鍗曪級锛変竴鏍凤紝浣嗕娇鐢ㄨ緭鍏ヨ屼笉鏄暟鍊煎父鏁
Remap (Simple) 锛堥噸鏄犲皠锛堢畝鍗曪級锛
R + LMB
灏嗗间粠涓涓寖鍥撮噸鏄犲皠鍒板彟涓涓寖鍥淬備緥濡傦紝濡傛灉鑺傜偣鏈熸湜 -1 鍒 1 鐨勫硷紝浣嗘偍鎯宠瀹冭緭鍑 2 鍒 5 鐨勫硷紝閭d箞鎮ㄥ彲浠ュ湪绗竴琛岄敭鍏-1 鍜 1锛屽湪绗簩琛岄敭鍏 2 鍜 5
Noise 锛堝櫔娉級
鏍规嵁涓ゅ垎閲忚緭鍏ワ紙渚嬪 UV 鍧愭爣锛夌敓鎴愪吉闅忔満鐐
One Minus 锛1 鍑忥級
O + LMB
杈撳嚭 1 鍑忓幓鍏惰緭鍏ャ備笌棰滆壊杈撳叆涓璧蜂娇鐢ㄦ椂锛屽皢鍙嶈浆棰滆壊
Negate 锛堝彇鍙嶏級
杈撳嚭鍏朵富杈撳叆涔樹互 -1銆傚疄璐ㄤ笂璁╂鍊煎彉璐燂紝璁╄礋鍊煎彉姝
Exp 锛堟寚鏁帮級
閫夊畾 Exp锛堟寚鏁帮級鏃讹細杈撳嚭 e 鍒板叾杈撳叆鐨勫箓
閫夊畾 Exp 2锛堟寚鏁 2锛夋椂锛氳緭鍑 2 鍒板叾杈撳叆鐨勫箓
Value 锛堝硷級
1 + LMB
鏁板瓧鍊硷紝涔熷彲绉颁负鈥淰ector 1鈥濓紙鍚戦噺 1锛夈傝繕鎻愪緵灞炴х増鏈傚煎彲浠ヤ笌 Append锛堥檮鍔狅級鑺傜偣涓璧风敤浜庡垱寤烘嫢鏈夊涓垎閲忕殑鍚戦噺銆傚艰繕鍙互涓庡悜閲/棰滆壊鐩镐箻銆備緥濡傦紝鍚戦噺 (3,1,0) 涔樹互 0.5 浼氳緭鍑哄悜閲 (1.5,0.5,0)
Vector 2 锛堝悜閲 2 锛
2 + LMB
鍏锋湁涓や釜鍒嗛噺/鍊肩殑鍚戦噺銆傞氬父涓 UV 鍧愭爣涓璧蜂娇鐢ㄣ傚皢 Vector 2锛堝悜閲 2锛 娣诲姞鍒 UV 鍧愭爣浼氳浆鎹 UV 鍧愭爣銆傚皢 UV 鍧愭爣涓 Vector 2锛堝悜閲 2锛夌浉涔樹細缂╂斁 UV
Vector 3 锛堝悜閲 3 锛
3 + LMB
鍏锋湁涓変釜鍒嗛噺/鍊肩殑鍚戦噺銆傞氬父鐢ㄤ綔棰滆壊銆佷綅缃垨鏂瑰悜
Vector 4 锛堝悜閲 4 锛
4 + LMB
鍏锋湁鍥涗釜鍒嗛噺/鍊肩殑鍚戦噺銆傞氬父鐢ㄤ綔鍏锋湁 Alpha 閫氶亾鐨勯鑹诧紝鎴栫敤浣滃湪绗洓涓氶亾涓湁涓浜涢澶栨暟鎹殑浣嶇疆銆傛瑙嗗櫒涓湁涓や釜鍙傛暟鍙緵鏇濆厜銆侰olor锛堥鑹诧級鍜 Vector 4锛堝悜閲 4锛夊弬鏁
Texture 2D 锛2D 绾圭悊锛
T + LMB
鍖呭惈瀵圭汗鐞嗙殑寮曠敤锛屽苟灏嗕娇鐢ㄧ壒瀹 MIP 绾у埆鍦ㄧ壒瀹 UV 鍧愭爣涓婂绾圭悊杩涜閲囨牱锛堝鏋滃凡杩炴帴锛夈傚鏋 [Tex] 杈撳叆鐢 Texture Asset锛堢汗鐞嗚祫婧愶級鑺傜偣杩炴帴锛屽垯瀹冨皢涓嶅啀鏄瑙嗗櫒涓殑鍙傛暟銆傝緭鍑 [RGB] 浠ュ強鍗曠嫭鐨勯氶亾
Texture Asset 锛堢汗鐞嗚祫婧愶級
鍖呭惈瀵圭汗鐞嗙殑寮曠敤銆傜敤浜庡鍗曚釜绾圭悊杩涜澶氭閲囨牱 鈥 浠呭彲杩炴帴鍒 Texture 2D锛2D 绾圭悊锛夎妭鐐圭殑 [Tex] 杈撳叆銆傝繖涔熷皢鍦ㄦ潗璐ㄧ殑妫瑙嗗櫒涓弽鏄犲嚭鏉ワ紝鍥犳鐢ㄦ埛鍙渶瑕佸垎閰嶄竴涓汗鐞
Value (Property) 锛堝硷紙灞炴э級锛
鏁板瓧鍊硷紱涓 Value锛堝硷級涓鏍凤紝浣嗗湪鏉愯川妫瑙嗗櫒涓洕鍏
Vector 4 (Property) 锛堝悜閲 4锛堝睘鎬э級锛
鍏锋湁鍥涗釜鍒嗛噺/鍊肩殑鍚戦噺锛屼笌 Vector 4锛堝悜閲 4锛変竴鏍凤紝浣嗗湪鏉愯川妫瑙嗗櫒涓綔涓 4 涓崟鐙殑 X銆乊銆乑 鍜 W 鍊兼洕鍏
Color 锛堥鑹诧級
鍏锋湁鍥涗釜鍒嗛噺/鍊肩殑鍚戦噺锛屼笌 Vector 4锛堝悜閲 4锛変竴鏍凤紝浣嗗湪鏉愯川妫瑙嗗櫒涓綔涓哄彇鑹插櫒鏇濆厜
Cubemap 锛堢珛鏂逛綋璐村浘锛
鍖呭惈瀵圭珛鏂逛綋鐨勫紩鐢紝骞跺皢浣跨敤鐗瑰畾 MIP 绾у埆鍦ㄧ壒瀹氭柟鍚戝鍏惰繘琛岄噰鏍凤紙濡傛灉宸茶繛鎺ワ級銆傝緭鍑 [RGB] 浠ュ強鍗曠嫭鐨勯氶亾
Slider 锛堟粦鍔ㄦ潯锛
璁╂偍鑳藉杞绘澗鍦板湪鏈灏忓煎拰鏈澶у间箣闂磋皟鏁存煇涓笺備篃鍚戞瑙嗗櫒鏇濆厜
Dot Product 锛堢偣绉級
杈撳嚭 [A] 鍜 [B] 涔嬮棿鐨勭偣绉傚浜庝袱涓綊涓鍖栫殑鍚戦噺鑰岃█锛屽畠瀹炶川涓婅緭鍑轰袱涓悜閲忔寚鍚戜箣闂寸殑璺濈銆傚鏋滃畠浠寚鍚戠浉鍚屾柟鍚戯紝鍒欒緭鍑 1锛涘鏋滃畠浠簰鐩稿瀭鐩达紝鍒欒緭鍑 0锛涘鏋滃畠浠寚鍚戠浉鍙嶆柟鍚戯紝鍒欒緭鍑 -1銆
涓嬫媺閫夋嫨锛
鏍囧噯 鈥 甯歌鐐圭Н
姝f暟 鈥 璁╂墍鏈夎礋鍊间负 0
璐熸暟 鈥 璁╂墍鏈夋鍊间负 0
缁濆鍊 鈥 璁╂墍鏈夎礋鍊间负姝
褰掍竴鍖 鈥 鍦 0 鍒 1锛堣屼笉鏄 -1 鍒 1锛夌殑鑼冨洿鍐呰緭鍑

涓嬪浘鏄剧ず浣跨敤涓や釜褰掍竴鍖栧悜閲忔椂涓嶅悓妯″紡鐨勮涓恒
鍦 X 杞翠笂鍙互寰楀埌鍏跺す瑙掞紝鍦 Y 杞翠笂鍙互寰楀埌杈撳嚭鍊硷細
Cross Product 锛堝弶绉級
杈撳嚭 [A] 鍜 [B] 鐨勫弶绉傚畠瀹炶川涓婅緭鍑哄瀭鐩翠簬涓や釜杈撳叆鍚戦噺鐨勫悜閲
Reflect 锛堝弽灏勶級
杈撳嚭鍏ュ皠鍚戦噺 [I] 鐨勫弽灏勫悜閲忥紝灏卞儚鍦ㄥ叿鏈夋硶绾 [N] 鐨勮〃闈笂鍙嶅皠/鍙嶅脊涓鏍
Normalize 锛堝綊涓鍖栵級
N + LMB
杈撳嚭杈撳叆鍚戦噺鐨勫綊涓鍖栫増鏈傚疄璐ㄤ笂灏嗗悜閲忛暱搴﹁缃负 1锛屽苟淇濇寔鐩稿悓鏂瑰悜
Append 锛堥檮鍔狅級
Q + LMB
浠庡涓緭鍏ュ/鍚戦噺杈撳嚭鍗曚釜鍚戦噺銆備緥濡傦紝濡傛灉 [A] 鏄悜閲 2锛孾B] 鏄 Value (Vector 1)锛堝硷紙鍚戦噺 1锛夛級锛屽垯鑺傜偣灏嗚緭鍑 Vector 3锛堝悜閲 3锛夛紝鍏朵腑 [A] 鍦ㄧ孩鑹插拰缁胯壊閫氶亾涓紝鑰 [B] 鍦ㄨ摑鑹查氶亾涓
Component Mask 锛堝垎閲忛伄缃╋級
C + LMB
鍒嗛噺閬僵鍙敤浜庨噸鏂版帓搴忔垨鎻愬彇鍚戦噺鐨勯氶亾
Desaturate 锛堝幓鑹诧級
杈撳嚭杈撳叆 [Col] 鐨勫幓鑹茬増鏈俒Des] 纭畾鍘昏壊绋嬪害銆傚间负 1 琛ㄧず瀹屽叏鍘昏壊锛屽间负 0.5 琛ㄧず鍗婂幓鑹诧紝鍊间负 0 琛ㄧず涓嶅幓鑹
Channel Blend 锛堥氶亾娣峰悎锛
杈撳嚭閬僵鐨勬瘡涓垎閲忎箻浠ュ搴旈鑹茶緭鍏ュ悗鐨勫拰銆傚浜庝笁骞抽潰娣峰悎鍗佸垎鏈夌敤
Normal Blend 锛堟硶绾挎贩鍚堬級
鍚堝苟涓や釜娉曠嚎鏂瑰悜锛屽叾涓熀纭娉曠嚎琚粏鑺傛硶绾挎壈涔
Distance 锛堣窛绂伙級
杈撳嚭涓や釜杈撳叆鐐 [A] 鍜 [B] 涔嬮棿鐨勮窛绂
Length 锛堥暱搴︼級
杈撳嚭鍏惰緭鍏ュ悜閲忕殑闀垮害/骞呭害
Transform 锛堣浆鎹級
灏嗗悜閲忎粠涓涓┖闂磋浆鎹㈠埌鍙︿竴涓┖闂淬傛偍鍙互鍦ㄤ笘鐣/鏈湴/鍒囩嚎/瑙嗗浘涔嬮棿鍒囨崲銆傚唴缃悜閲忓湪涓栫晫绌洪棿涓傛硶绾胯緭鍏ョ殑鏂瑰悜鍦ㄥ垏绾跨┖闂翠腑銆
Vector Projection 锛堝悜閲忔姇褰憋級
杈撳嚭鍚戦噺 [A] 鍒板悜閲 [B] 鐨勬姇褰
Vector Rejection 锛堝悜閲忔嫆璇嗭級
杈撳嚭浠庡悜閲 [B] 鎷掕瘑鐨勫悜閲 [A]
Panner 锛堝钩绉诲櫒锛
P + LMB
杈撳嚭杈撳叆 [UV] 鍧愭爣锛屾寜 [Dist] 璺濈锛屼互 U 鍙傛暟鍜 V 鍙傛暟鎸囧畾鐨勬柟鍚/閫熷害杩涜骞崇Щ/鍋忕Щ
Rotator 锛堟棆杞櫒锛
杈撳嚭杈撳叆 [UV] 鍧愭爣锛岀粫杞村績鐐 [Piv] 鎸 [Ang] 寮у害鏃嬭浆銆傚鏋 [Ang] 鏈繛鎺ユ垨杩炴帴鍒版椂闂磋妭鐐癸紝[Spd] 灏嗘帶鍒舵棆杞熷害
Parallax 锛堣宸級
杈撳嚭杈撳叆 [UV] 鍧愭爣锛屽叿鏈変粠 [Hei] 杈撳叆娲剧敓鐨勮宸亸绉伙紝娣卞害涓 [Dep]锛屽紩鐢ㄩ珮搴︿负 [Ref]銆
[Ref] 楂樺害涓 0 琛ㄧず鍏惰宸晥鏋滀负楂樺害璐村浘鐪嬩技浠庣綉鏍间腑绐佸嚭
[Ref] 楂樺害涓 1 琛ㄧず鍏惰宸晥鏋滀负楂樺害璐村浘鐪嬩技鍚戜笅杩涘叆缃戞牸涓
UV Coordinates 锛圲V 鍧愭爣锛
U + LMB
杈撳嚭鍑犱綍鍥惧舰璇ラ儴鍒嗙殑鎸囧畾 UV 鍧愭爣銆備笅鎷夐夋嫨鍙鎮ㄩ夋嫨 UV 閫氶亾 0 鎴 UV 閫氶亾 1銆傝娉ㄦ剰锛屽厜鐓ц创鍥剧綉鏍间负鍏跺厜鐓ц创鍥 UV 浣跨敤 UV1
Object Position 锛堝璞′綅缃級
杈撳嚭瀵硅薄杞村績鐐圭殑涓栫晫浣嶇疆
Screen Position 锛堝睆骞曚綅缃級
杈撳嚭缃戞牸褰撳墠閮ㄥ垎鐨勫睆骞曚綅缃紝鍙湪灞忓箷绌洪棿璐村浘鏃剁敤浣 UV 鍧愭爣銆傚湪涓嬫媺妗嗕腑锛屸淣ormalized鈥濓紙褰掍竴鍖栵級浼氬皢 {0,0} 鏀惧湪灞忓箷涓績锛屽皢 {1,1} 鏀惧湪鍙充笂鏂广傗淭iled鈥濓紙骞抽摵锛変篃浼氬皢 {0,0} 鏀惧湪涓績锛屼絾灏嗘牴鎹旱妯瘮鍦 X 杞翠笂缂╂斁
World Position 锛堜笘鐣屼綅缃級
鍦ㄤ笘鐣岀┖闂翠腑杈撳嚭缃戞牸褰撳墠閮ㄥ垎鐨勪綅缃
Vertex Color 锛堥《鐐归鑹诧級
V + LMB
杈撳嚭椤剁偣棰滆壊銆傚鏋滄偍鍦ㄩ《鐐归鑹蹭腑鐑樼剻浜嗙幆澧冨厜閬斀锛屾垨瑕佷娇鐢ㄥ柗娑傞鑹蹭负缃戞牸鏌撹壊锛屾垨瑕佸皢椤剁偣棰滆壊鐢ㄤ簬鍏朵粬瀵硅薄锛岄偅涔堣繖灏辨槸鎮ㄩ渶瑕佺殑鑺傜偣
Fresnel 锛堣彶娑呭皵锛
杈撳嚭琛ㄩ潰娉曠嚎鍜岃鍥炬柟鍚戜箣闂寸殑鐐圭Н銆傚鏋滄兂瑕佷娇鐢ㄨ嚜瀹氫箟娉曠嚎锛屽垯浼氫娇鐢 [Nrm]銆傞粯璁や娇鐢ㄦ壈涔辨硶绾裤俒Exp] 鏇存敼杈撳嚭鐨勬寚鏁般傚艰秺楂橈紝鑿叉秴灏旇秺钖勩
Normal Direction 锛堟硶绾挎柟鍚戯級
鍦ㄤ笘鐣岀┖闂翠腑杈撳嚭缃戞牸娉曠嚎鐨勬柟鍚戙侾erturbed锛堟壈涔憋級澶嶉夋浣垮叾鍦ㄥ簲鐢 Main锛堜富瑕侊級鑺傜偣鐨勨淣ormal鈥濓紙娉曠嚎锛夎緭鍏ュ悗浣跨敤娉曠嚎锛屼緥濡傛硶绾胯创鍥俱
Bitangent Direction 锛堝弻鍒囩嚎鏂瑰悜锛
鍦ㄤ笘鐣岀┖闂翠腑杈撳嚭缃戞牸鍙屽垏绾跨殑鏂瑰悜
Tangent Direction 锛堝垏绾挎柟鍚戯級
鍦ㄤ笘鐣岀┖闂翠腑杈撳嚭缃戞牸鍒囩嚎鐨勬柟鍚
View Direction 锛堣鍥炬柟鍚戯級
鍦ㄤ笘鐣岀┖闂翠腑杈撳嚭浠庡嚑浣曞浘褰㈠綋鍓嶉儴鍒嗗埌鎽勫儚鏈虹殑鏂瑰悜
View Reflection 锛堣鍥惧弽灏勶級
杈撳嚭瑙嗗浘鐨勬柟鍚戯紝灏卞儚鏍规嵁琛ㄩ潰娉曠嚎鍙嶅脊閭f牱銆傝繖鍙敤浣滃畬缇庡弽灏勭殑绔嬫柟浣撹创鍥剧殑杈撳叆
Light Color 锛堝厜鑹诧級
杈撳叆褰撳墠瑕佹覆鏌撶殑鍏夌嚎鐨勯鑹
Light Attenuation 锛堝厜绾胯“鍑忥級
杈撳嚭鍏夌嚎琛板噺銆傛鑺傜偣鍚屾椂鍖呭惈鍏夌嚎琛板噺鍜岄槾褰
Ambient Light 锛堢幆澧冨厜锛
杈撳嚭瑕佸湪鍏朵腑娓叉煋鐫鑹插櫒鐨勫満鏅殑鐜鍏
Light Direction 锛堝厜绾挎柟鍚戯級
杈撳嚭褰撳墠瑕佹覆鏌撶殑鍏夌嚎鐨勬柟鍚
Half Direction 锛堟姌鍗婃柟鍚戯級
杈撳嚭鎶樺崐鏂瑰悜銆傝繖鏄寚鍚戣鍥惧拰鍏夌嚎鍚戦噺涓棿鐨勬柟鍚戯紝閫氬父鍦 blinn-phong 闀滈潰鍙嶅皠妯″瀷涓娇鐢
Light Position 锛堝厜绾夸綅缃級
杈撳嚭褰撳墠瑕佹覆鏌撶殑鍏夌嚎鐨勪綅缃
[Pnt] 濡傛灉褰撳墠瑕佹覆鏌撶殑鍏夌嚎鏄偣鍏夌嚎锛屽垯杈撳嚭 1锛屽惁鍒欒緭鍑 0
Time 锛堟椂闂达級
浠ヤ笉鍚岄熺巼杈撳嚭鏃堕棿銆
[t/20] 浠 1/20 鍊嶉熺巼杈撳嚭鏃堕棿
[t] 杈撳嚭褰撳墠鏃堕棿
[t*2] 浠 2 鍊嶉熺巼杈撳嚭鏃堕棿
[t*3] 浠 3 鍊嶉熺巼杈撳嚭鏃堕棿
View Position 锛堣鍥句綅缃級
杈撳嚭瑙嗗浘/鎽勫儚鏈虹殑褰撳墠浣嶇疆锛堣娉ㄦ剰锛屼娇鐢ㄩ忚鎽勫儚鏈烘椂锛岃鍥句綅缃湪灞忓箷鈥滆儗鍚庘濓級
Projection Parameters 锛堟姇褰卞弬鏁帮級
杈撳嚭鍥涗釜鎶曞奖鍙傛暟銆
[Sign] 涓 -1锛屽鏋滃綋鍓嶄娇鐢ㄥ掕鎶曞奖鐭╅樀娓叉煋锛屽惁鍒欎负 1
[Near] 鏄綋鍓嶆憚鍍忔満鐨勮繎骞抽潰璺濈
[Far] 鏄綋鍓嶆憚鍍忔満鐨勮繙骞抽潰璺濈
[1/Far] 鏄繙骞抽潰璺濈鐨勫掓暟
Screen Parameters 锛堝睆骞曞弬鏁帮級
杈撳嚭鍥涗釜灞忓箷鍙傛暟銆
[pxW] 鏄互鍍忕礌涓哄崟浣嶇殑灞忓箷瀹藉害
[pxH] 鏄互鍍忕礌涓哄崟浣嶇殑灞忓箷楂樺害
[1+1/W] 鏄 1 鍔犲儚绱犲搴︾殑鍊掓暟
[1+1/H] 鏄 1 鍔犲儚绱犻珮搴︾殑鍊掓暟
Scene Color 锛堝満鏅鑹诧級
鍖呭惈娓叉煋姝ゅ璞″墠鐨勫満鏅覆鏌撶殑绾圭悊銆傞粯璁ゅ叾 UV 浣嶄簬灞忓箷绌洪棿涓紝浠庤岃姣忎釜鍍忕礌閮戒唬琛ㄥ璞¤儗鍚庣殑棰滆壊銆傝繖鍙敤浜庢洿鍔犻珮绾х殑娣峰悎/閫忔槑搴︽晥鏋滐紝鎴栦綔涓 UV 鏀瑰彉鏃跺舰鎴愭姌灏勭殑鍏朵腑涓绉嶆墜鍔ㄦ柟娉
Scene Depth 锛堝満鏅繁搴︼級
鎽勫儚鏈哄埌褰撳墠鍍忕礌鑳屽悗鐨勫満鏅殑娣卞害銆傛偍闇瑕佸湪娣峰悎璁剧疆涓叧闂繁搴︾紦鍐茬紪鍐, 骞朵笖闇瑕佷娇鐢ㄦ覆鏌撴繁搴︾汗鐞嗙殑鎽勫儚鏈
Depth Blend 锛堟繁搴︽贩鍚堬級
瀹冩牴鎹窛绂昏緭鍏ヨ緭鍑 0 鍜 1 涔嬮棿鐨勫硷紝鍏蜂綋鍙栧喅浜庢鍍忕礌璺濊儗鏅嚑浣曞浘褰㈠杩戙傚浜庢按杈圭紭鐨勬贰鍑烘垨鍏夎酱鐩镐氦鍑犱綍鍥惧舰鐨勮蒋鍖栧緢鏈夌敤銆傛敞鎰忥細鎮ㄩ渶瑕佸湪娣峰悎璁剧疆涓叧闂繁搴︾紦鍐茬紪鍐欙紝骞朵笖闇瑕佷娇鐢ㄦ覆鏌撴繁搴︾汗鐞嗙殑鎽勫儚鏈
Depth 锛堟繁搴︼級
杩欐槸鎽勫儚澶磋繎骞抽潰鍒板璞$殑璺濈
Pi 锛埾锛孭i锛
杈撳嚭 蟺 鐨勫硷紝鍦嗙殑鍛ㄩ暱涓庣洿寰勭殑姣斿硷紙绾︿负 3.141593锛
Tau 锛埾勶紝Tau锛
杈撳嚭 蟿 鐨勫硷紝鍦嗙殑鍛ㄩ暱涓庡崐寰勭殑姣斿硷紙绾︿负 6.283185锛
Phi (Golden ratio) 锛埾嗭紝Phi锛堥粍閲戞瘮渚嬶級锛
杈撳嚭 蠁 鐨勫硷紝榛勯噾姣斾緥锛堢害涓 1.618034锛
Root 2 锛堚垰2锛
杈撳嚭 2 鐨勭畻鏈钩鏂规牴锛堢害涓 1.414214锛
e (Euler's Constant) 锛坋锛屾鎷夊父鏁帮級
杈撳嚭娆ф媺甯告暟e锛堢害涓 2.718282锛
Sin 锛堟寮︼級
杈撳嚭鍏惰緭鍏ョ殑姝e鸡
Cos 锛堜綑寮︼級
杈撳嚭鍏惰緭鍏ョ殑浣欏鸡
Tan 锛堟鍒囷級
杈撳嚭鍏惰緭鍏ョ殑姝e垏
ArcSin 锛堝弽姝e鸡锛
浠ュ姬搴﹁緭鍑哄叾杈撳叆鐨勫弽姝e鸡
ArcCos 锛堝弽浣欏鸡锛
浠ュ姬搴﹁緭鍑哄叾杈撳叆鐨勫弽浣欏鸡
ArcTan 锛堝弽姝e垏锛
浠ュ姬搴﹁緭鍑哄叾杈撳叆鐨勫弽姝e垏
ArcTan2 锛堝弻鍙橀噺鍙嶆鍒囷級
浠ュ姬搴﹁緭鍑哄叾涓や釜杈撳叆鐨勫弽姝e垏銆侫rcTan2 杈撳嚭浠嬩簬 鈥撓 鍜 蟺 涔嬮棿鐨勭壒瀹氳搴
Code 锛堜唬鐮侊級
鐢ㄤ簬鍦ㄧ潃鑹插櫒鍐呴儴鎵ц鑷畾涔変唬鐮佺殑鑺傜偣銆傚湪宸︿晶鐨勭ず渚嬩腑锛岃妭鐐逛笌绾挎ф彃鍊肩殑宸ヤ綔鏂瑰紡绫讳技锛屽湪鍒拌揪 [end] 涔嬪墠鍚 [mid] 寮洸
Relay 锛堜腑缁э級
杈撳嚭鍏惰緭鍏ワ紝瀵逛簬缁勭粐鑺傜偣杩炴帴鍗佸垎鏈夌敤