锘??xml version="1.0" encoding="utf-8" standalone="yes"?>久久爱另类一区二区小说,国产精品magnet,欧美成人免费小视频 http://www.shnenglu.com/jedi-CY/archive/2014/02/06/205641.html闄堟槺(CY) 闄堟槺(CY) Wed, 05 Feb 2014 16:11:00 GMT http://www.shnenglu.com/jedi-CY/archive/2014/02/06/205641.html http://www.shnenglu.com/jedi-CY/comments/205641.html http://www.shnenglu.com/jedi-CY/archive/2014/02/06/205641.html#Feedback 0 http://www.shnenglu.com/jedi-CY/comments/commentRss/205641.html http://www.shnenglu.com/jedi-CY/services/trackbacks/205641.html 瑕佺墷璁癎PU璺憇hader浠g爜鏃訛紝if鏄笉鍒嗘敮鐨勶紝甯擱噺鐨刦or寰幆鏄睍寮鐨勶紝鍥犳鏈閲嶈鏄笉瑕佸祵濂椾袱灞俧or 闀滈潰鍙嶅皠涔辯畻浜嗕釜brdf鐨勬晥鏋滐紝濂藉儚涓嶉敊錛涢槾褰卞姞涓婂幓灝辨寚浠ょ垎浜嗭紱鐞磋韓鐨刣istance field榪樻病綆楀噯紜?br />鎴浘 ]]>濂戒箙娌℃湁鏇存柊錛屽啓涓綃囧噾鍑戞暟----涓婂笣涔嬪厜 http://www.shnenglu.com/jedi-CY/archive/2010/06/19/118207.html闄堟槺(CY) 闄堟槺(CY) Fri, 18 Jun 2010 16:22:00 GMT http://www.shnenglu.com/jedi-CY/archive/2010/06/19/118207.html http://www.shnenglu.com/jedi-CY/comments/118207.html http://www.shnenglu.com/jedi-CY/archive/2010/06/19/118207.html#Feedback 0 http://www.shnenglu.com/jedi-CY/comments/commentRss/118207.html http://www.shnenglu.com/jedi-CY/services/trackbacks/118207.html 鐭ラ亾浜嗗ぇ姒傛濊礬錛屼簬鏄寙鍖嗗繖蹇欏疄鐜幫紝緇撴灉鏉叿濡備笅錛?br> 璋冧簡涓嶅皯鏃墮棿錛岃皟涓嶅嚭鏉ワ紝浜庢槸鍘籲v gpu gem3鐨勫畼緗戞壘閭d釜浠g爜錛屽叕寮忕収鎼紝鍐嶈皟涓涓嬪弬鏁幫紝紲炲櫒璇炵敓~~RenderMonkey 瀹炵幇浠g爜涓嬭澆 姝ゅ鏈涓昏鐨勫彂鐜版槸RenderMonkey閲岀殑Camera瑕佸姞榪涘幓錛屽湪pass閲岄潰寮曠敤錛岃繖鏍烽噷闈㈢殑瑙嗛敟鐭╅樀鎵嶆槸Camera鐨勭煩闃點備箣鍓嶇殑閭d釜鏈夐棶棰樼殑Parallax Mapping錛?a href="http://www.shnenglu.com/jedi-CY/archive/2009/10/24/99351.html">http://www.shnenglu.com/jedi-CY/archive/2009/10/24/99351.html 錛屽嚭鐜板鎬殑鐜拌薄涔熸槸娌℃湁鍔燙amera瀵艱嚧鐨勩傘傘傛睏銆傘傘傘傘?br> 鍙﹀鐢變簬RenderMonkey鏃犳硶鑾峰緱ViewPort澶у皬錛岃繕鏈夊叾浠栧悇縐嶉檺鍒剁瓑鍘熷洜錛屾暣鏁寸敤浜?涓猵ass錛屽疄闄呭疄鐜版椂2涓猵ass灝卞浜?img src ="http://www.shnenglu.com/jedi-CY/aggbug/118207.html" width = "1" height = "1" /> ]]>絎簩嬈″湴褰㈠疄璺?GeoMipMap 鍔ㄦ佸湴褰㈠潡娓叉煋 http://www.shnenglu.com/jedi-CY/archive/2010/02/09/107615.html闄堟槺(CY) 闄堟槺(CY) Tue, 09 Feb 2010 11:24:00 GMT http://www.shnenglu.com/jedi-CY/archive/2010/02/09/107615.html http://www.shnenglu.com/jedi-CY/comments/107615.html http://www.shnenglu.com/jedi-CY/archive/2010/02/09/107615.html#Feedback 0 http://www.shnenglu.com/jedi-CY/comments/commentRss/107615.html http://www.shnenglu.com/jedi-CY/services/trackbacks/107615.html 闃呰鍏ㄦ枃 ]]> IGame楠ㄩ鍔ㄧ敾鎴愬姛瀵煎嚭 http://www.shnenglu.com/jedi-CY/archive/2010/01/16/105834.html闄堟槺(CY) 闄堟槺(CY) Sat, 16 Jan 2010 13:10:00 GMT http://www.shnenglu.com/jedi-CY/archive/2010/01/16/105834.html http://www.shnenglu.com/jedi-CY/comments/105834.html http://www.shnenglu.com/jedi-CY/archive/2010/01/16/105834.html#Feedback 8 http://www.shnenglu.com/jedi-CY/comments/commentRss/105834.html http://www.shnenglu.com/jedi-CY/services/trackbacks/105834.html 楠ㄩ瀵煎嚭demo涓嬭澆 錛坸ml鏂囦歡澶瑰寘鍚玬ax婧愭枃浠躲佸鍑簒ml鏂囦歡銆佺敓鎴愯嚜瀹氫箟鏍煎紡鏂囦歡錛?br>錛堝叧闂▼搴忔椂錛屽湪钃濊壊鎺у埗鍙版渶涓嬮潰閭d釜鍛戒護琛岃緭鍏?#8220;System.ShutDown”鍗沖彲錛?br> 闇瑕佹敞鎰忕殑涓鐐癸細 IGame鍦ㄥ鍑洪楠紉ml鐨勬椂鍊欙紝max 楠ㄩ錛屾槸鏀寔鍏抽敭甯у鍑虹殑錛沚iped楠ㄩ錛屽垯寮哄埗閲囨牱瀵煎嚭銆?br>鍥犱負max楠ㄩ鐨勫姩鐢繪柟寮忓拰鍏跺畠鍏抽敭甯у姩鐢繪病鏈変粈涔堝尯鍒紝閮芥槸緇熶竴鐨?dsmax璁懼畾鐨勯偅浜沶ode錛涜宐iped楠ㄩ涓嶅悓錛屼綔涓烘彃浠訛紝娌℃湁鍜?dsmax鐨勮璁′繚鎸佷竴鑷存э紝浣犱笉鑳界湅鍒板垎寮鐨勭Щ鍔ㄣ佹棆杞佺緝鏀劇殑鍏抽敭甯э紝鍦ㄦ墦寮“鍥捐〃緙栬緫鍣?#8221;鈥斺?#8220;杞ㄨ抗瑙嗗浘-鏇茬嚎緙栬緫鍣?#8221;涓紝浣犲彲浠ョ湅鍒拌繖浜涘叧閿撫錛屼絾鐪嬩笉鍒板叧閿撫闂存暟鍊肩殑鏇茬嚎鍙樺寲 鍥犳錛宐iped楠ㄩ鍦ㄥ仛鏃嬭漿鏃訛紝鍏抽敭甯т箣闂寸殑鏃嬭漿涓嶈兘瓚呰繃180搴︼紝鍚﹀垯鍦ㄥ洓鍏冩暟鎻掑兼椂錛屼細鍙樻垚灝忎簬180搴︽柟鍚戠殑鏃嬭漿錛涜宮ax鍐呯疆鐨勯楠間笉鍚岋紝瀹冮粯璁や嬌鐢ㄦ鎷夎鏃嬭漿錛屽洜姝?涓叧閿撫涔嬮棿鍙互鏃嬭漿浠繪剰澶х殑瑙掑害銆?br> 涓嬩竴姝ュ紕欏剁偣钂欑毊涓婂幓錛屽氨鍩烘湰瀹屾暣浜?
]]>涓涓湁闂鐨刾arallax mapping錛屾湜楂樻墜瑙e喅 http://www.shnenglu.com/jedi-CY/archive/2009/10/24/99351.html闄堟槺(CY) 闄堟槺(CY) Sat, 24 Oct 2009 05:36:00 GMT http://www.shnenglu.com/jedi-CY/archive/2009/10/24/99351.html http://www.shnenglu.com/jedi-CY/comments/99351.html http://www.shnenglu.com/jedi-CY/archive/2009/10/24/99351.html#Feedback 2 http://www.shnenglu.com/jedi-CY/comments/commentRss/99351.html http://www.shnenglu.com/jedi-CY/services/trackbacks/99351.html 榪欎釜闂鍦╪ormal mapping闃舵灝卞凡緇忓嚭鐜頒簡錛屼絾鏄晥鏋滄病鏈夌敤parallax mapping鍚庢槑鏄俱傚叿浣撶棁鐘跺涓嬶細 褰撴憚鍍忔満鐨剒杞村湪姝g‘瑙掑害鏃訛紝涓婁笅宸﹀彸鏃嬭漿鐩告満錛岃繖鏃剁湅璧鋒潵parallax mapping鏄紜殑銆?br> 浣嗗綋鎽勫儚鏈烘部z鏂瑰悜鏃嬭漿涓涓搴﹀悗錛屽啀涓婁笅宸﹀彸鏃嬭漿鐩告満錛屽氨浼氬彂鐜拌創鍥懼亸縐葷殑鏂瑰悜鍑虹幇浜嗛敊璇紝璐村浘鍋忕Щ鐨勬柟鍚戜粛鐒舵寜鐫鎽勫儚鏈簔杞存紜椂鐨勫亸縐繪柟鍚戝亸縐匯?br> 姣斿璇達紝鎽勫儚鏈烘部z鏃嬭漿180搴﹀悗錛屼笂/涓嬫棆杞浉鏈猴紝鐗╀綋鐨勬ā鍨嬫敼鍙樺綋鐒舵槸闅忕潃鏄劇ず淇/浠拌錛屼絾鏄創鍥懼亸縐誨嵈鍙嶈繃鏉ワ紝鍙樻垚浜嗕話瑙?淇錛涜繖鏃跺乏鍙蟲棆杞紝璐村浘涔熶細鍑虹幇鐩稿弽鐨勫乏瑙?鍙寵..... 鑰屾憚鍍忔満娌縵鏃嬭漿90搴︽垨270搴︽椂錛屼笂涓嬫棆杞浉鏈猴紝璐村浘鍋忕Щ鍗存槸娌垮乏瑙嗐佸彸瑙嗘敼鍙?br>鎽勫儚鏈烘部z鏃嬭漿鍏跺畠瑙掑害鏃訛紝榪欎簺鏀瑰彉涔熼殢鐫鍙樺寲錛屾劅瑙変笂灝辨槸錛氳創鍥劇殑鍋忕Щ鏁堟灉浠嶇劧璁や負浣犵殑鐪肩潧榪樺湪鎽勫儚鏈簔杞寸殑姝g‘瑙掑害澶勭湅銆?br> 榪囧悗闂簡涓涓珮鎵嬶紝浠栬杞崲鍒皌angent space綆楅敊浜嗭紝鐒跺悗鎴戝啀鎶婇偅鏈妎penGL shading language銆媙ormal mapping閲岄潰vs鐨勮漿鎹angent space浠g爜鐩存帴鎷胯繃鏉ワ紝璁$畻鐨勭粨鏋滃嵈鏇村姞涓嶆紜紝鐢婚潰閮戒笉浼氭湁鍔ㄦ佺殑鍋忕Щ浜嗭紝鍚庢潵鍙堝幓澶嶄範浜嗗悜閲忔棆杞殑鍏紡錛岃寰楄嚜宸辯殑搴旇榪樻槸娌℃湁閿欒錛屽張鍦ㄧ綉涓婃壘浜嗗埆浜哄啓榪囩殑浠g爜璇曢獙錛屽紕浜嗗崐澶╄繕鏄笉瀵癸紝鐜板湪鎰熻浠嶇劧鏄師鏉ョ殑浠g爜鏈鎺ヨ繎姝g‘鐨勶紝浣嗘壘涓嶅埌鍘熷洜錛屾湜楂樻墜瑙e喅銆?br>RenderMonkey婧愭枃浠訛細 parallaxMapping.rar 鏈夐棶棰樼殑浠g爜錛?/span>
1 uniform vec3 LightPosition; 2 3 varying vec3 EyePos_pointTanSpace; 4 varying vec3 LightPos_pointTanSpace; 5 6 attribute vec3 Tangent; 7 // uniform vec3 Tangent; 8 9 void main() 10 { 11 gl_Position = ftransform(); 12 gl_TexCoord[0 ] = gl_MultiTexCoord0; 13 14 vec3 eyepos= ( 0 , 0 , 0 ); 15 vec3 Pos_eyeSpace = vec3(gl_ModelViewMatrix * gl_Vertex); 16 17 // 鐪煎潗鏍囩郴涓嬬殑TBN 18 vec3 n = normalize(gl_NormalMatrix * gl_Normal); 19 vec3 t = normalize(gl_NormalMatrix * Tangent); 20 vec3 b = cross(n, t); 21 mat3 TBN = mat3(t, b, n); 22 23 vec3 pointLightPos= LightPosition - Pos_eyeSpace; // 鍏夌浉瀵逛簬鐐癸紝鍦ㄧ溂絀洪棿鐨勪綅緗?/span>24 LightPos_pointTanSpace = TBN * pointLightPos; // 鍏夌浉瀵逛簬鐐癸紝鍦ㄧ偣鐨則angent鍧愭爣緋諱笅鐨勪綅緗?/span>25 26 vec3 eyePos= Pos_eyeSpace *- 1.0 ; // 鐪肩潧鐩稿浜庣偣錛屽湪鐪肩┖闂寸殑浣嶇疆 27 EyePos_pointTanSpace = TBN * eyePos; // 鐪肩潧鐩稿浜庣偣錛屽湪鐐圭殑tangent鍧愭爣緋諱笅鐨勭偣浣嶇疆 28 29 30 }
1 uniform sampler2D BumpTex; 2 uniform sampler2D BitMapTex; 3 uniform float HeightFactor; 4 5 varying vec3 EyePos_pointTanSpace; 6 varying vec3 LightPos_pointTanSpace; 7 8 void main() 9 { 10 float height = (texture2D(BumpTex, gl_TexCoord[ 0 ].xy)).a; // 鑾峰緱楂樺害 11 height = (height * 2.0 ) - 1.0 ; 12 13 vec3 LightDir= normalize(LightPos_pointTanSpace); // 鍏夋柟鍚?/span>14 vec3 viewVec = normalize(EyePos_pointTanSpace); // 鐪肩潧鏂瑰悜 15 16 vec2 texCoord2= gl_TexCoord[ 0 ].xy + viewVec.xy * height * HeightFactor; 17 18 vec3 BumpNorm= vec3(texture2D(BumpTex, texCoord2)); 19 20 BumpNorm= (BumpNorm * 2.0 ) - 1.0 ; 21 22 vec4 Co= (texture2D(BitMapTex, texCoord2)); 23 24 float diffuse = max(dot(BumpNorm, LightDir), 0.0 ); 25 26 27 vec3 reflectVec= reflect( - LightDir,BumpNorm); 28 29 float spec = max(dot(reflectVec, viewVec), 0.0 ); // 鍙嶅皠鍏?nbsp; 30 spec = pow(spec, 8.0 ); 31 32 float color = spec + diffuse; 33 34 gl_FragColor = Co * color; // vec4(color,spec,0.0, 1.0); 35 }
]]>shader鐨勫皬濂忛福鏇?/title> http://www.shnenglu.com/jedi-CY/archive/2009/10/17/98852.html闄堟槺(CY) 闄堟槺(CY) Sat, 17 Oct 2009 14:50:00 GMT http://www.shnenglu.com/jedi-CY/archive/2009/10/17/98852.html http://www.shnenglu.com/jedi-CY/comments/98852.html http://www.shnenglu.com/jedi-CY/archive/2009/10/17/98852.html#Feedback 3 http://www.shnenglu.com/jedi-CY/comments/commentRss/98852.html http://www.shnenglu.com/jedi-CY/services/trackbacks/98852.html 闃呰鍏ㄦ枃 ]]> 姹傛煇涓偣鐨則angent Space 鐨勮綆楁柟娉?/title> http://www.shnenglu.com/jedi-CY/archive/2009/10/12/98445.html闄堟槺(CY) 闄堟槺(CY) Mon, 12 Oct 2009 15:38:00 GMT http://www.shnenglu.com/jedi-CY/archive/2009/10/12/98445.html http://www.shnenglu.com/jedi-CY/comments/98445.html http://www.shnenglu.com/jedi-CY/archive/2009/10/12/98445.html#Feedback 0 http://www.shnenglu.com/jedi-CY/comments/commentRss/98445.html http://www.shnenglu.com/jedi-CY/services/trackbacks/98445.html http://blog.csdn.net/soilwork/archive/2006/12/30/1468860.aspx涓殑鐜艦鍥懼凡緇忓彲浠ュ緢瀹規槗鐞嗚ВTBN鐨勪笁涓垎閲忓惈涔変簡錛屼絾鏄浜庡浣曡綆楋紝鎵句簡寰堝鍦版柟閮芥病鏈変竴涓瘮杈?#8220;閫氫織”鐨勭畻娉曪紙瀹為檯涓婃槸鎴戞病鏈夌湅鎳?..錛?br>榪欓噷浠嬬粛涓縐嶆湰浜烘兂鍒扮殑鏈瀹規槗鐪嬫噦鐨勭畻娉曪紝涓嶈繃璁$畻閲忚繕鏄瘮杈冨ぇ鍛靛懙 濡傚浘錛屽凡鐭?涓偣錛屽潗鏍囧垎鍒槸P1錛孭2錛岃繕宸茬煡浠栦滑鐨勭汗鐞嗗潗鏍囷紝鍒嗗埆鏄紙u1錛寁1錛夊拰錛坲2錛寁2錛夛紝榪樼煡閬撲簡絎竴涓偣鐨勬硶鍚戦噺錛屾垜浠璁$畻鐨勫氨鏄疨1鐨則angent space錛屽嵆闄や簡娉曞悜閲忓鐨勬墍璋撶殑“鍓硶鍚戦噺”B 鍜屾墍璋撶殑“tangent鍚戦噺”T銆?br> 鐩存帴鍋囪鎵姹傜殑B鍜孴鍦ㄤ笘鐣屽潗鏍囦腑鐨勫鹼細B=錛坸b錛寉b錛寊b錛夛紝T=錛坸t錛寉t錛寊t錛?br> 寰堝鏄撳氨鐭ラ亾錛?br>T·B=0 N·T=0 B·N=0 鍙﹀浠栦滑閮芥槸鍗曚綅鍚戦噺錛屽張鏈夛細 |T|=1 |B|=1 鎺ヤ笅鏉ワ紝鎴戜滑鍙互鐢ㄧ偣1鐨勫悇涓暟鎹潵琛ㄧず鐐?鐨勫潗鏍囦綅緗細 P1+T*錛坲2-u1錛?B*錛坴2-v1錛?P2錛堟垨鑰卽v浜ゆ崲浣嶇疆錛歅1+T*錛坴2-v1錛?B*錛坲2-u1錛?P2錛屽叿浣撴槸閭d釜鍙互涓嶇...錛?br> 榪欐牱6涓湭鐭ラ噺6涓柟紼嬶紝灝卞彲浠ヨ綆楀緱鍑虹偣1鐨則angent space浜唦~ 浠庤繖閲屼篃鍙互鐞嗚В鍒幫紝褰撶汗鐞嗚創鍥懼潗鏍囦笉澶熻繛緇椂涓轟粈涔坣ormal mapping鐨勬晥鏋滀細涓嶇悊鎯籌紝鍥犱負璁$畻涓涓偣鐨則angent space榪樿渚濊禆鍛ㄥ洿鐨勭偣鐨勪俊鎭?
]]> 瀛︿範shader絎竴姝?/title> http://www.shnenglu.com/jedi-CY/archive/2009/09/15/96368.html闄堟槺(CY) 闄堟槺(CY) Tue, 15 Sep 2009 15:30:00 GMT http://www.shnenglu.com/jedi-CY/archive/2009/09/15/96368.html http://www.shnenglu.com/jedi-CY/comments/96368.html http://www.shnenglu.com/jedi-CY/archive/2009/09/15/96368.html#Feedback 4 http://www.shnenglu.com/jedi-CY/comments/commentRss/96368.html http://www.shnenglu.com/jedi-CY/services/trackbacks/96368.html 寰堟棭灝辨兂瀛︿範shader浜嗭紝褰撴椂鐪嬬潃閭f湰銆妎penGL瓚呯駭瀹濆吀銆嬬殑楂樼駭shader璇█鐪嬩簡2閬嶏紝鍗磋璇鍒頒簡閭d簺浠涔坰haderObject錛宻haderProgramme鐨勬蹇典笂錛岃繕涓鐩村湪鎬濊冧竴涓狿rogramme鍜孫bject涔嬮棿鐨勫叧緋匯?br>璇稿鍖呭惈鍜岃鍖呭惈銆佷竴瀵瑰錛岃繕鏈夊湪紼嬪簭涓綍鏃跺噯澶囷紝浣曟椂閲婃斁鐨勯棶棰橈紙鏇劇湅榪囩綉涓婁竴涓緥瀛愶紝鍦ㄦ父鎴忓驚鐜腑灞呯劧涓嶆柇閲嶆柊緙栬瘧錛夈?br> 鍥犱負琚繖浜涢棶棰樻悶娣蜂簡寰堜箙錛屾墍浠ヨ寰楀簲璇ユ壘鏈洿璇︾粏鐨勪功鐪嬶紝浜庢槸灝辨壘浜嗘湰銆妎penGL shading language銆嬭嫳鏂囩増鐢靛瓙涔︼紝鍓嶉潰5绔犵殑鍐呭浠嶇劧鏄偅浜涙覆鏌撶綰跨殑鑰侀棶棰橈紝鍥犱負瀹蟲曚細婕忕偣浠涔堬紝閮借愮潃鎬у瓙鐪嬶紝涓氫綑鏃墮棿鐪嬩簡10澶╁乏鍙籌紝鎵嶇湅鍒扮6绔犱竴涓叆闂ㄧ殑渚嬪瓙錛岃繕鏈夌涓冪珷瑙e喅浜嗕互鍓嶅洶鎵扮潃鐨勯棶棰樸?/p>
鎺ヤ笅鏉ョ敤浜嗛偅涓猂enderMonkey鏄庢槑鐧界櫧鍦拌瘯楠屼簡絎?绔犵殑閭d釜渚嬪瓙錛岃瘯楠屾椂鍙堝啋鍑轟簡涓嶅皯鏁板闂錛屼緥濡傦細vs涓殑娉曠嚎鍙樻崲涓轟粈涔堜笉鐢╣l_ModelViewMatrix鍘諱箻銆佺煩闃電殑鍚勭榪愮畻鍏紡絳夌瓑錛屽搸錛岄兘鎬ぇ涓鏃剁嚎鎬т唬鏁板鐨勫お鐑傘?br> 浠ヤ笅鏄寜鐓?#8220;姍欏疂涔?#8221;絎叚绔犵殑鐮栧潡錛岃繖涓绔犲悗闈㈢暀緇欒鑰呮湁鍏寵В鍐抽鑹查敮榻跨殑闂錛屽紕浜嗗崐澶?.... 鍙﹀錛孯enderMonkey娣誨姞涓枃娉ㄩ噴鏃訛紝鏈夋椂鍊欏眳鐒朵細鍑轟粈涔?#8220;type name expected at token "<undefined>"”錛岀劧鍚庣紪璇戜笉閫氳繃錛屼篃寮勪簡鍗婂ぉ...
uniform vec3 f3LightPos; const float specularContribution = 0.4 ; const float diffuseContribution = 1.0 - specularContribution; varying float LightIntensity; varying vec2 MCposition; void main( void ) { vec3 ecPosition = vec3(gl_ModelViewMatrix * gl_Vertex); // 鍦ㄧ溂鍧愭爣緋諱腑鐗╀綋鐨勫潗鏍?/span> vec3 tnorm = normalize(gl_NormalMatrix * gl_Normal); // 鍦ㄧ溂鍧愭爣緋諱腑鐨勬硶綰?/span> vec3 lightEyePos = vec3(vec4(f3LightPos, 1.0 )); vec3 lightVec = normalize(lightEyePos - ecPosition); // 鐏厜鏂瑰悜(璺熺潃鐪肩潧縐誨姩) vec3 reflectVec = reflect( - lightVec, tnorm); // 鍙嶅皠鏂瑰悜 vec3 viewVec = normalize( - ecPosition); // 鐪肩潧鐨勫墠鏂瑰悜 float diffuse = max(dot(lightVec, tnorm), 0.0 ); // 鍏夌嚎鍜屾硶綰跨殑涔樼Н float spec = 0.0 ; if (diffuse > 0.0 ) { spec = max(dot(reflectVec, viewVec), 0.0 ); // 鍙嶅皠鍏?nbsp; spec = pow(spec, 2.0 ); } LightIntensity = diffuseContribution * diffuse + specularContribution * spec; MCposition = gl_Vertex.xy; gl_Position = gl_ProjectionMatrix * gl_ModelViewMatrix * gl_Vertex; // ftransform(); }
uniform vec4 BrickColor; uniform vec4 EdgeColor; uniform vec2 f2BrickSize; uniform vec2 f2BrickInnerPerc; varying vec2 MCposition; varying float LightIntensity; void main( void ) { vec4 color; vec2 position, useBrick; position = MCposition * 0.02 / f2BrickSize; // 鍦ㄨ創鍥句負鍙傝冩瘮渚?/span> if (fract(position.y * 0.5 ) > 0.5 ) position.x += 0.5 ; position = fract(position); // 鍦ㄨ創鍥句笂 float smallX = ( 1.0 - f2BrickInnerPerc.x) / 2.0 ; float bigX = 1.0 - smallX; float smallY = ( 1.0 - f2BrickInnerPerc.y) / 2.0 ; float bigY = 1.0 - smallY; if (position.x > 0.5 ) useBrick.x = 1.0 - smoothstep(bigX - 0.03 , bigX + 0.03 ,position.x); else { // useBrick.x = step(position.x, f2BrickInnerPerc.x); useBrick.x = smoothstep(smallX - 0.03 , smallX + 0.03 ,position.x); } if (position.y > 0.5 ) useBrick.y = 1.0 - smoothstep(bigY - 0.03 , bigY + 0.03 ,position.y); else { // useBrick.y = step(position.y, f2BrickInnerPerc.y); useBrick.y = smoothstep(smallY - 0.03 , smallY + 0.03 ,position.y); } // useBrick.x = step(position.x, f2BrickInnerPerc.x); // useBrick.y = step(position.y, f2BrickInnerPerc.y); color = mix(EdgeColor,BrickColor , useBrick.x * useBrick.y); color = color * LightIntensity; gl_FragColor = vec4( color.rgb, 1.0 ); }
鎺ヤ笅鏉ュ涔犵殑涓昏闂錛?/span> shader鐜閰嶇疆銆佽娉曠瓑鐑﹂棶棰橀兘瑙e喅浜嗭紝涔熻兘鐪嬫槑鐧絉enderMonkey鑷甫鐨勪竴浜涙瘮杈冪畝鍗曠殑渚嬪瓙鐨勬暣浣撴濊礬銆?br> 浣嗘槸姣忎釜渚嬪瓙涓殑緇嗚妭閮ㄥ垎錛屾瘡涓叿浣撴楠ょ殑璁$畻錛屽嵈涓嶆槑鐧姐傚洜姝ょ幇鍦ㄦ槸鐪嬫噦渚嬪瓙鐨勫ぇ姒傦紝浣嗘槸瑕佹垜閲嶆柊鍐欎竴涓紝鎴栬呮寚鍑轟緥瀛愪腑鏌愪釜鍏蜂綋璁$畻鐨勪綔鐢紝鎴栬呰剳閲屾兂璞′緥瀛愪腑鏌愪釜鍏蜂綋姝ラ浜х敓鐨勬晥鏋滐紝鑲畾涓嶄細...
]]> 涓涓兂娉曪紝瀹炰範n緇寸珛鏂逛綋錛侊紒錛?錛堢粨鏉燂級 http://www.shnenglu.com/jedi-CY/archive/2009/08/03/92100.html闄堟槺(CY) 闄堟槺(CY) Mon, 03 Aug 2009 14:29:00 GMT http://www.shnenglu.com/jedi-CY/archive/2009/08/03/92100.html http://www.shnenglu.com/jedi-CY/comments/92100.html http://www.shnenglu.com/jedi-CY/archive/2009/08/03/92100.html#Feedback 9 http://www.shnenglu.com/jedi-CY/comments/commentRss/92100.html http://www.shnenglu.com/jedi-CY/services/trackbacks/92100.html 闃呰鍏ㄦ枃 ]]> 涓涓兂娉曪紝瀹炵幇n緇磋秴綰х珛鏂逛綋錛侊紒錛佸垵姝ユ垚鍔燂紒錛侊紒錛堢浜岀珷錛?/title> http://www.shnenglu.com/jedi-CY/archive/2009/08/01/91919.html闄堟槺(CY) 闄堟槺(CY) Sat, 01 Aug 2009 14:16:00 GMT http://www.shnenglu.com/jedi-CY/archive/2009/08/01/91919.html http://www.shnenglu.com/jedi-CY/comments/91919.html http://www.shnenglu.com/jedi-CY/archive/2009/08/01/91919.html#Feedback 9 http://www.shnenglu.com/jedi-CY/comments/commentRss/91919.html http://www.shnenglu.com/jedi-CY/services/trackbacks/91919.html 闃呰鍏ㄦ枃 ]]> 涓涓兂娉曪紝鐢ㄧ▼搴忕敾鍑洪珮緇磋秴绔嬫柟浣撳湪涓夌淮涓婄殑鎶曞獎錛侊紒錛侊紙1錛?/title> http://www.shnenglu.com/jedi-CY/archive/2009/07/31/91845.html闄堟槺(CY) 闄堟槺(CY) Fri, 31 Jul 2009 13:32:00 GMT http://www.shnenglu.com/jedi-CY/archive/2009/07/31/91845.html http://www.shnenglu.com/jedi-CY/comments/91845.html http://www.shnenglu.com/jedi-CY/archive/2009/07/31/91845.html#Feedback 8 http://www.shnenglu.com/jedi-CY/comments/commentRss/91845.html http://www.shnenglu.com/jedi-CY/services/trackbacks/91845.html 闃呰鍏ㄦ枃 ]]> 涔嬪墠鍋氱殑LOD鍔ㄦ佸湴褰?/title> http://www.shnenglu.com/jedi-CY/archive/2009/06/30/88882.html闄堟槺(CY) 闄堟槺(CY) Tue, 30 Jun 2009 04:53:00 GMT http://www.shnenglu.com/jedi-CY/archive/2009/06/30/88882.html http://www.shnenglu.com/jedi-CY/comments/88882.html http://www.shnenglu.com/jedi-CY/archive/2009/06/30/88882.html#Feedback 8 http://www.shnenglu.com/jedi-CY/comments/commentRss/88882.html http://www.shnenglu.com/jedi-CY/services/trackbacks/88882.html 闃呰鍏ㄦ枃 ]]> 青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
亚洲日本成人在线观看 |
老司机午夜免费精品视频
|
亚洲人成在线观看一区二区 |
午夜日本精品 |
亚洲免费视频一区二区 |
国产一区二区av |
免费亚洲电影在线 |
欧美xart系列在线观看 |
99精品免费 |
在线综合亚洲欧美在线视频 |
国产精品豆花视频 |
久久中文在线 |
免费视频亚洲 |
性高湖久久久久久久久 |
久久乐国产精品 |
99riav久久精品riav |
亚洲自拍偷拍麻豆 |
亚洲国产成人tv |
亚洲午夜影视影院在线观看 |
国产在线精品自拍 |
亚洲美女av电影 |
国产亚洲精品久久久 |
亚洲国产精品成人综合 |
国产精品美女黄网 |
欧美黑人多人双交 |
国产毛片久久 |
亚洲日本va午夜在线电影 |
国产日产亚洲精品系列 |
亚洲欧洲一区 |
亚洲第一福利在线观看 |
亚洲视频1区 |
亚洲美女av电影 |
欧美一级理论片 |
亚洲深夜福利 |
美女脱光内衣内裤视频久久网站 |
中文日韩欧美 |
欧美电影免费观看 |
久久精品一区二区三区不卡 |
欧美精品久久99 |
免费观看不卡av |
国产精品香蕉在线观看 |
亚洲日本一区二区三区 |
精品动漫3d一区二区三区 |
亚洲一区二区三区精品视频 |
亚洲欧洲日本在线 |
久久欧美中文字幕 |
久久国产精品毛片 |
国产精品高潮呻吟久久av黑人 |
免费日韩视频 |
伊人久久婷婷色综合98网 |
亚洲一区精彩视频 |
亚洲男人影院 |
欧美日韩一区在线观看 |
91久久精品国产91久久 |
亚洲高清视频一区二区 |
久久人人爽人人爽爽久久 |
欧美主播一区二区三区 |
国产精品久久久久久模特 |
99视频精品免费观看 |
亚洲精品久久久久久一区二区 |
久久精品在这里 |
久久精品一区二区国产 |
国产午夜精品全部视频在线播放
|
欧美www视频在线观看 |
国产在线乱码一区二区三区 |
新狼窝色av性久久久久久 |
性做久久久久久久免费看 |
国产精品久久久久久久午夜片 |
一区二区三区久久久 |
中国亚洲黄色 |
国产精品入口日韩视频大尺度 |
亚洲一区尤物 |
久久精品国产亚洲a |
好看的亚洲午夜视频在线 |
久久精品国产亚洲一区二区 |
久久激情中文 |
亚洲电影免费在线 |
欧美成人精品在线播放 |
亚洲乱码视频 |
午夜日韩在线 |
激情小说另类小说亚洲欧美 |
免费在线观看精品 |
亚洲美女在线看 |
欧美淫片网站 |
亚洲国产精品专区久久 |
欧美精品v国产精品v日韩精品 |
一本一本久久a久久精品牛牛影视 |
亚洲一二区在线 |
国产在线精品成人一区二区三区 |
久久三级视频 |
日韩亚洲一区二区 |
久久久综合网 |
夜夜嗨av一区二区三区 |
国产视频综合在线 |
欧美激情视频给我 |
亚洲欧美变态国产另类 |
欧美国产大片 |
亚洲欧美一区二区精品久久久 |
国产一区二区三区在线播放免费观看 |
久久国产综合精品 |
日韩午夜在线观看视频 |
久久久久国产一区二区 |
一区二区福利 |
黄色精品一区二区 |
欧美国产日韩在线观看 |
亚洲欧美日韩国产综合 |
亚洲国产精品一区制服丝袜
|
一区二区高清在线观看 |
国产日本欧美一区二区 |
欧美精品导航 |
久久久国产亚洲精品 |
99这里只有精品 |
欧美激情一区二区三区高清视频 |
小黄鸭视频精品导航 |
亚洲精品久久久久久下一站
|
欧美岛国激情 |
欧美一区二区三区免费视 |
亚洲三级电影全部在线观看高清 |
久久国产精品久久久久久电车 |
亚洲乱码国产乱码精品精可以看 |
国产欧美日韩麻豆91 |
欧美日在线观看 |
欧美sm重口味系列视频在线观看 |
香蕉久久夜色精品国产使用方法 |
99re8这里有精品热视频免费 |
另类综合日韩欧美亚洲 |
欧美在线播放一区二区 |
亚洲欧美日韩在线不卡 |
一本色道**综合亚洲精品蜜桃冫 |
怡红院精品视频在线观看极品 |
国产精品老牛 |
国产精品久久久久久影视 |
欧美久久99 |
欧美精品1区2区3区 |
欧美jizzhd精品欧美巨大免费 |
久久久国产一区二区 |
久久精品1区 |
久久久噜噜噜久久中文字幕色伊伊
|
亚洲一区www |
一区二区福利 |
在线午夜精品自拍 |
一本大道av伊人久久综合 |
亚洲精品欧美 |
99国产一区 |
亚洲一区观看 |
欧美一级黄色录像 |
香蕉久久国产 |
久久久精品午夜少妇 |
久久免费国产精品 |
久久综合久久美利坚合众国 |
久久亚洲精品网站 |
欧美成人一区二区三区片免费 |
麻豆亚洲精品 |
亚洲大片精品永久免费 |
亚洲国产欧美精品 |
亚洲免费av电影 |
一区二区冒白浆视频 |
午夜视频一区在线观看 |
久久精品亚洲一区二区三区浴池 |
久久久久国产一区二区三区四区 |
欧美在线亚洲在线 |
久久免费午夜影院 |
欧美另类99xxxxx |
国产精品国产三级国产aⅴ浪潮 |
国产精品一区二区在线观看不卡 |
国产欧美一区二区精品婷婷 |
在线观看日产精品 |
一本综合精品 |
久久久欧美精品 |
亚洲激情偷拍 |
亚洲欧美国产精品桃花 |
久久午夜国产精品 |
欧美另类在线观看 |
国产欧美精品日韩 |
亚洲人成免费 |
久久国内精品自在自线400部 |
久热国产精品视频 |
91久久夜色精品国产九色 |
亚洲一级在线 |
麻豆av福利av久久av |
欧美午夜不卡视频 |
激情一区二区三区 |
亚洲一二三区在线观看 |
久久伊人精品天天 |
中文久久精品 |
女人色偷偷aa久久天堂 |
国产精品视频久久 |
亚洲人体偷拍 |
久久久人成影片一区二区三区 |
亚洲国产日韩一区 |
久久精品久久综合 |
国产精品福利网站 |
日韩网站在线观看 |
久久中文在线 |
亚洲欧美视频在线观看视频 |
欧美高清在线视频观看不卡 |
国内精品久久久久久久97牛牛 |
夜夜嗨av一区二区三区四季av |
久久亚洲综合 |
午夜视频一区 |