“You probably won't find a better shader editor in the galaxy kid!”
Thomas Pasieka, co-creator of The Other Brothers

鎼滅储妗


Eng - 绠浣撳瓧 - 姝i珨瀛
鍏ラ杸鏁欑▼
Main 锛堜富瑕侊級
閫欐槸鎮ㄧ殑鎵鏈夊叾浠栫瘈榛炴渶绲傚皣閫f帴鍒扮殑绡榛炪傚畠鎿佹湁鐐轰笉鍚岀洰鐨勫偝閬炴湇鍕欑殑澶氬嬭几鍏ャ
浠ヤ笅鍕曠暙鍦栧儚椤ず鎵鏈夎几鍏ュ強鍏堕毃鏅傞枔璁婂寲鐨勮鐐恒傚ぇ閮ㄥ垎杓稿叆鏈冨湪 0 鍜 1锛堥粦鑹插拰鐧借壊锛変箣闁撲締鍥炵躬鍒跺嫊鐣

Diffuse 锛堟极鍙嶅皠锛
閫欐槸钁楄壊鍣ㄧ殑涓昏椤忚壊銆傛极鍙嶅皠椤忚壊灏囨牴鎿氬嚭鍏夌殑娉曠窔瑙掑害鎺ユ敹鍏夌窔鎴栬“娓涘厜绶氾紝浠ュ強琚櫚褰遍伄缃┿

Diffuse Power 锛堟极鍙嶅皠鍔涢亾锛
閫欐槸鍏夋硶绶氳搴﹁“娓涚殑鎸囨暩銆傚彲鍦ㄤ娇鐢ㄥぇ鏂 1 鐨勫兼檪鐛插緱椤嶅鐨勯噾灞瑙銆傝珛娉ㄦ剰锛岀劇璜栦綍鏅傚晸鐢紝瀹冮兘鐩哥暥娑堣楁晥鑳姐

Specular 锛堥彙闈㈠弽灏勶級
閫欐槸钁楄壊鍣ㄩ彙闈㈤珮鍏夌殑椤忚壊銆傚艰秺楂樺氨瓒婃槑浜紝榛戣壊瀹屽叏涓嶅彈钁楄壊鍣ㄥ奖闊裤

Gloss 锛堝厜婢わ級
閫欐槸閺¢潰楂樺厜鐨勬寚鏁搞傚艰秺楂樺厜婢ゅ害瓒婇珮锛屽艰定杩戞柤 0 鏅傚皣璁婂緱娌掓湁鍏夋兢銆傝珛娉ㄦ剰锛屽鏋滄偍鍙栨秷閬镐腑鍏夋兢閲嶆槧灏勶紝鍓囨噳閬垮厤浣跨敤浣庢柤 1 鐨勫厜婢ゅ笺

Normal 锛堟硶绶氾級
閫欐槸鍒囩窔绌洪枔娉曠窔鏂瑰悜锛屾偍鍙湪姝らf帴娉曠窔璨煎湒鎴栬嚜瀹氱京娉曠窔鍚戦噺銆

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锛堢瘎鍦嶏級涓妯o紝浣嗙偤鏈灏忓煎拰鏈澶у间娇鐢ㄦ暩瀛楄几鍏ワ紝鑰屼笉浣跨敤绡榛炴帴鍙
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锛堢窔鎬ф彃鍊硷級涓妯o紝浣嗙偤 [A] 鍜 [B] 浣跨敤鏁稿瓧杓稿叆锛岃屼笉浣跨敤绡榛炴帴鍙
Posterize 锛堣壊瑾垮垎闆級
鍩烘柤缍撻亷 [Steps] 鐨勫煎皪鍊奸茶鍥涙崹浜斿叆鍙栨暣銆俒Steps] 鍊肩偤 5 鏅傚皣鍦 0 鍒 1 鐨勭瘎鍦嶅収鍓靛缓 5 娈
Blend 锛堟贩鍚堬級
B + LMB
浣跨敤鎸囧畾鏂规硶娣峰悎 [A] 鍜 [B]
Remap 锛堥噸鏄犲皠锛
灏囧煎緸涓鍊嬬瘎鍦嶉噸鏄犲皠鍒板彟涓鍊嬬瘎鍦嶃傝垏 Remap (Simple)锛堥噸鏄犲皠锛堢啊鍠級锛変竴妯o紝浣嗕娇鐢ㄨ几鍏ヨ屼笉鏄暩鍊煎父鏁
Remap (Simple) 锛堥噸鏄犲皠锛堢啊鍠級锛
R + LMB
灏囧煎緸涓鍊嬬瘎鍦嶉噸鏄犲皠鍒板彟涓鍊嬬瘎鍦嶃備緥濡傦紝濡傛灉绡榛炴湡鏈 -1 鍒 1 鐨勫硷紝浣嗘偍鎯宠瀹冭几鍑 2 鍒 5 鐨勫硷紝閭i杭鎮ㄥ彲浠ュ湪绗竴琛岄嵉鍏-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 鍧愭涓婂皪璨煎湒閫茶鎺℃ǎ锛堝鏋滃凡閫f帴锛夈傚鏋 [Tex] 杓稿叆鐢 Texture Asset锛堣布鍦栬硣婧愶級绡榛為f帴锛屽墖瀹冨皣涓嶅啀鏄瑕栧櫒涓殑鍙冩暩銆傝几鍑 [RGB] 浠ュ強鍠崹鐨勯氶亾
Texture Asset 锛堣布鍦栬硣婧愶級
鍖呭惈灏嶈布鍦栫殑寮曠敤銆傜敤鏂煎皪鍠嬭布鍦栭茶澶氭鎺℃ǎ 鈥 鍍呭彲閫f帴鍒 Texture 2D锛2D 璨煎湒锛夌瘈榛炵殑 [Tex] 杓稿叆銆傞欎篃灏囧湪鏉愯唱鐨勬瑕栧櫒涓弽鏄犲嚭渚嗭紝鍥犳鐢ㄦ埗鍙渶瑕佸垎閰嶄竴鍊嬭布鍦
Value (Property) 锛堝硷紙灞э級锛
鏁稿瓧鍊硷紱鑸 Value锛堝硷級涓妯o紝浣嗗湪鏉愯唱妾㈣鍣ㄤ腑鏇濆厜
Vector 4 (Property) 锛堝悜閲 4锛堝爆鎬э級锛
鍏锋湁鍥涘嬪垎閲/鍊肩殑鍚戦噺锛岃垏 Vector 4锛堝悜閲 4锛変竴妯o紝浣嗗湪鏉愯唱妾㈣鍣ㄤ腑浣滅偤 4 鍊嬪柈鐛ㄧ殑 X銆乊銆乑 鍜 W 鍊兼洕鍏
Color 锛堥鑹诧級
鍏锋湁鍥涘嬪垎閲/鍊肩殑鍚戦噺锛岃垏 Vector 4锛堝悜閲 4锛変竴妯o紝浣嗗湪鏉愯唱妾㈣鍣ㄤ腑浣滅偤鍙栬壊鍣ㄦ洕鍏
Cubemap 锛堢珛鏂归珨璨煎湒锛
鍖呭惈灏嶇珛鏂归珨鐨勫紩鐢紝涓﹀皣浣跨敤鐗瑰畾 MIP 绱氬垾鍦ㄧ壒瀹氭柟鍚戝皪鍏堕茶鎺℃ǎ锛堝鏋滃凡閫f帴锛夈傝几鍑 [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] 鏈f帴鎴栭f帴鍒版檪闁撶瘈榛烇紝[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 浣嶆柤灞忓箷绌洪枔涓紝寰炶岃畵姣忓嬪儚绱犻兘浠h〃灏嶈薄鑳屽緦鐨勯鑹层傞欏彲鐢ㄦ柤鏇村姞楂樼礆鐨勬贩鍚/閫忔槑搴︽晥鏋滐紝鎴栦綔鐐 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 锛堥洐璁婇噺鍙嶆鍒囷級
浠ュ姬搴﹁几鍑哄叾鍏╁嬭几鍏ョ殑鍙嶆鍒囥侫rcTan2 杓稿嚭浠嬫柤 鈥撓 鍜 蟺 涔嬮枔鐨勭壒瀹氳搴
Code 锛堜唬纰硷級
鐢ㄦ柤鍦ㄨ憲鑹插櫒鍏ч儴鍩疯鑷畾缇╀唬纰肩殑绡榛炪傚湪宸﹀伌鐨勭ず渚嬩腑锛岀瘈榛炶垏绶氭ф彃鍊肩殑宸ヤ綔鏂瑰紡椤炰技锛屽湪鍒伴仈 [end] 涔嬪墠鍚 [mid] 褰庢洸
Relay 锛堜腑绻硷級
杓稿嚭鍏惰几鍏ワ紝灏嶆柤绲勭箶绡榛為f帴鍗佸垎鏈夌敤