锘??xml version="1.0" encoding="utf-8" standalone="yes"?>欧美一区二区三区在线视频,欧美一区成人,亚洲精品久久久久久下一站http://m.shnenglu.com/bloodbao/c++zh-cnSun, 16 Nov 2025 01:48:29 GMTSun, 16 Nov 2025 01:48:29 GMT60鏀瑰啓浠g爜蹇冨緱http://m.shnenglu.com/bloodbao/archive/2008/12/08/68816.htmlbloodbaobloodbaoMon, 08 Dec 2008 02:21:00 GMThttp://m.shnenglu.com/bloodbao/archive/2008/12/08/68816.htmlhttp://m.shnenglu.com/bloodbao/comments/68816.htmlhttp://m.shnenglu.com/bloodbao/archive/2008/12/08/68816.html#Feedback0http://m.shnenglu.com/bloodbao/comments/commentRss/68816.htmlhttp://m.shnenglu.com/bloodbao/services/trackbacks/68816.html       鐢變簬BLOOD娓叉煋鍣ㄧ殑API鐢盌X9杞悜DX10錛屽湪杞寲鏋舵瀯鍜屾敼鍐欎唬鐮佺殑榪囩▼涓紝鍑虹幇寰堝寮傚父銆?br>鍦ㄦ祴璇曡繃紼嬩腑錛屽彂鐜板緢澶氶敊璇兘鏄敱浜庢病鏈夎繘琛屾紜殑鍒濆鍖栭犳垚鐨勩傛瘮濡傚垎閰嶅唴瀛樼殑瀹歸棿錛屽彉閲忕殑姝g‘璧嬪肩瓑絳夈傚凡璋冨畬VB錛孖B錛孴EXTURE錛孯ENDERTARGET絳夐儴鍒嗭紝榪樻湁MESH絳夊ぇ閮ㄦ湭璋冦?br>       鐗規MARK錛屼互浣滆褰曘?

bloodbao 2008-12-08 10:21 鍙戣〃璇勮
]]>
clip plane妯℃嫙錛堟妱鑷狣XSDK錛?/title><link>http://m.shnenglu.com/bloodbao/archive/2008/11/09/66448.html</link><dc:creator>bloodbao</dc:creator><author>bloodbao</author><pubDate>Sun, 09 Nov 2008 12:47:00 GMT</pubDate><guid>http://m.shnenglu.com/bloodbao/archive/2008/11/09/66448.html</guid><wfw:comment>http://m.shnenglu.com/bloodbao/comments/66448.html</wfw:comment><comments>http://m.shnenglu.com/bloodbao/archive/2008/11/09/66448.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.shnenglu.com/bloodbao/comments/commentRss/66448.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/bloodbao/services/trackbacks/66448.html</trackback:ping><description><![CDATA[<p>DX9涓嬩嬌鐢?br>D3DXPLANE plane; <br> D3DXPlaneFromPointNormal( &plane, &vPoint, &vNormal ); //鐢熸垚榪欎釜騫抽潰 <br>D3DXMatrixReflect( &matReflect, &plane ); //鍙栧緱璇ュ鉤闈㈢殑鍙嶅皠鐭╅樀<br>//璁劇疆鍓垏騫抽潰錛屼嬌鍙嶅皠闈笂鐨勫唴瀹硅娓叉煋錛岄潰涓嬬殑琚涪寮?<br> m_pd3dDevice->SetClipPlane( 0, plane ); <br> m_pd3dDevice->SetRenderState( D3DRS_CLIPPLANEENABLE, 0x01 );<br>DX10涓嬫ā鎷燂細<br>User Clip PlanesUser Clip Planes are emulated by specifying a clip distance output from the Vertex Shader with the SV_ClipDistance[n] flag, where n is either 0 or 1. Each component can hold up to 4 clip distances in x, y, z, and w giving a total of 8 clip distances.</p> <p>    鐢ㄦ埛瑁佸噺騫抽潰閫氳繃鍦╒S閲岃瀹氫竴涓猄V_ClipDistance[n]鏍囪錛屽畾涔変竴涓鍑忚窛紱昏緭鍑哄緱鍒?n涓?鎴?銆傝繖閲屼竴鍏辮兘瀛樻斁8涓狢lip Plane璺濈錛屽垎鍒嬌鐢ㄦ暟緇勪袱涓厓绱犵殑x,y,z,w閫氶亾銆?/p> <p>In this scenario, each clip planes is defined by a plane equation of the form:</p> <p>鍦ㄨ繖涓満鏅噷錛屾瘡涓猚lip plane琚竴涓鉤闈㈡柟紼嬪畾涔夛細</p> <p>Ax + By + Cz + D =0;</p> <p>Where <A,B,C> is the normal of the plane, and D is the distance of the plane from the origin. Plugging in any point <x,y,z> into this equation gives its distance from the plane. Therefore, all points <x,y,z> that satisfy the equation Ax + By + Cz + D = 0 are on the plane. All points that satisfy Ax + By + Cz + D < 0 are below the plane. All points that satisfy Ax + By + Cz + D > 0 are above the plane.</p> <p><A,B,C>鏄鉤闈㈡硶鍚戯紝D鏄鉤闈㈠埌鍘熺偣鐨勮窛紱匯傛妸浠繪剰鐐?lt;x,y,z>浠e叆鏂圭▼鑳藉緱鍒板畠鍒板鉤闈㈢殑璺濈銆傛墍鏈夋弧瓚蟲柟紼嬶紳0鐨勭偣鍦ㄥ鉤闈笂錛?lt;0鐨勭偣鍦ㄥ鉤闈笅鑰?>0鐨勭偣鍦ㄥ鉤闈笂銆?/p> <p>In the Vertex Shader, each vertex is tested against each plane equation to produce a distance to the clip plane. Each of the three clip distances are stored in the first three components of the output component with the semantic SV_ClipDistance0. These clip distances get interpolated over the triangle during rasterization and clipped if the value every goes below 0.</p> <p>    鍦╒S涓紝姣忎釜欏剁偣浼氬甫鍏ュ鉤闈㈡柟紼嬪仛嫻嬭瘯銆傛瘡涓笁瑙掑艦鐨凜lip璺濈瀛樺湪SV_ClipDistance0璇箟杈撳嚭鐨勫墠涓変釜閫氶亾涓傝繖涓窛紱誨湪鍏夋爡鍖栦腑琚嚎鎬ф彃鍊鹼紝鎵鏈夊皬浜?鐨勫儚绱犺鍓旈櫎銆?/p> <img src ="http://m.shnenglu.com/bloodbao/aggbug/66448.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/bloodbao/" target="_blank">bloodbao</a> 2008-11-09 20:47 <a href="http://m.shnenglu.com/bloodbao/archive/2008/11/09/66448.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>rendering璋冭瘯http://m.shnenglu.com/bloodbao/archive/2008/10/23/64881.htmlbloodbaobloodbaoThu, 23 Oct 2008 13:55:00 GMThttp://m.shnenglu.com/bloodbao/archive/2008/10/23/64881.htmlhttp://m.shnenglu.com/bloodbao/comments/64881.htmlhttp://m.shnenglu.com/bloodbao/archive/2008/10/23/64881.html#Feedback0http://m.shnenglu.com/bloodbao/comments/commentRss/64881.htmlhttp://m.shnenglu.com/bloodbao/services/trackbacks/64881.html

bloodbao 2008-10-23 21:55 鍙戣〃璇勮
]]>
鑷埗錛堝啓緇欒嚜宸詫級http://m.shnenglu.com/bloodbao/archive/2008/09/18/62223.htmlbloodbaobloodbaoThu, 18 Sep 2008 13:58:00 GMThttp://m.shnenglu.com/bloodbao/archive/2008/09/18/62223.htmlhttp://m.shnenglu.com/bloodbao/comments/62223.htmlhttp://m.shnenglu.com/bloodbao/archive/2008/09/18/62223.html#Feedback0http://m.shnenglu.com/bloodbao/comments/commentRss/62223.htmlhttp://m.shnenglu.com/bloodbao/services/trackbacks/62223.html

bloodbao 2008-09-18 21:58 鍙戣〃璇勮
]]>
Main Features in my blood enginehttp://m.shnenglu.com/bloodbao/archive/2008/08/11/58530.htmlbloodbaobloodbaoMon, 11 Aug 2008 07:05:00 GMThttp://m.shnenglu.com/bloodbao/archive/2008/08/11/58530.htmlhttp://m.shnenglu.com/bloodbao/comments/58530.htmlhttp://m.shnenglu.com/bloodbao/archive/2008/08/11/58530.html#Feedback0http://m.shnenglu.com/bloodbao/comments/commentRss/58530.htmlhttp://m.shnenglu.com/bloodbao/services/trackbacks/58530.htmlDirect3D 9 is used to render the scene
User input is gathered though DirectInput
Single pass multi-texturing using the fixed-function pipeline (FFP)
Light-mapping
Frustum culling
Simple skybox
Keyframe Animation with GPU-based frame interpolation through a custom vertex and pixel shader written in HLSL. This technique is also known as Vertex Tweening or even Morph Target
Support for Quake2 models (.md2)
Support for DirectX models (.x)
Support for PCX texture loading in addition to the other image formats already supported by Direct3D
Support for Quake3:Arena levels
Lightmaps
Curved surfaces using Bezier patches
Partial support of Quake3 materials and effects (.shader)
Uses the BSP/PVS to quickly discard non visible geometry
Collision detection using the BSP tree (supports ray, sphere and box sweeps)
A flexible scene graph system where entities can be attached to each other in order to perform hierarchical transformations and geometry culling
Quake-like player movement physics
A powerful in-game console system:
Outputs vital information
Can take command inputs from the user
Console variables can be dynamically edited at runtime
Commands and console variable settings can be loaded from a user-specified text file (cfg)
Garbage collection of unused resources through reference counting
Control keys can be dynamically changed in-game through the console, using the bind command
User input is abstracted through an Action Manager which maps inputs to actions
A smart chase-camera controller that will detect collisions with the world to prevent the view from being occluded by other pieces of world geometry.
Error handling through exceptions
The in-game HUD can display vital performance statistics about the game, such as frames per second, total number of triangles on the screen, number of textures loaded, etc…

bloodbao 2008-08-11 15:05 鍙戣〃璇勮
]]>
鍙堝け璐ヤ簡http://m.shnenglu.com/bloodbao/archive/2008/08/06/58118.htmlbloodbaobloodbaoWed, 06 Aug 2008 02:36:00 GMThttp://m.shnenglu.com/bloodbao/archive/2008/08/06/58118.htmlhttp://m.shnenglu.com/bloodbao/comments/58118.htmlhttp://m.shnenglu.com/bloodbao/archive/2008/08/06/58118.html#Feedback10http://m.shnenglu.com/bloodbao/comments/commentRss/58118.htmlhttp://m.shnenglu.com/bloodbao/services/trackbacks/58118.html       涓轟簡榪欐闈㈣瘯錛屾垜浼戞伅浜嗗緢澶氬ぉ錛岄兘娌″伐浣溿傜粨鏋滐紝寰楀埌鐨勫張鏄竴涓け璐ョ殑緇撳眬銆傚垎鏋愬師鍥狅紝閮借涓烘垜鐨凜++鍩虹寰堣杽寮卞惂錛岃涓嶅氨鏄洜涓烘垜浠ュ墠浠庝簨鐨勫伐浣滃拰鐜板湪鐨勫伐浣滃樊鍒お澶т簡銆?br>      浣滀負涓鍚嶆柊鎵嬶紝鎴戝緢榪瘋尗錛屽湪瀛︿範鐨勯亾璺垜娌℃湁琚墦璐ワ紝鍗村湪涓ゆ闈㈣瘯涓紝娣卞彈鎵撳嚮銆傛垜涓嶄粎鍦ㄦ兂錛岃繖鏄惁鏄垜瑕侀夋嫨鐨勮礬銆備粎鍓╁崐涓鏈堢殑鏃墮棿錛屾殤鏈熷氨緇撴潫浜嗭紝鎴戝啀涓嶅嚭鍘伙紝灝辨病鏈轟細浜嗐備簨瀹炰笂錛屽仛涓嶅仛娓告垙錛屾垜鏃犳墍璋擄紝浣嗙幇鍦ㄧ殑鐢熸椿涓鐩翠笉鏄垜鎯寵鐨勩傛垜涓嶆柇鍦板湪鍚﹀畾鑷凡鐨勮礬涓婏紝瓚婅蛋瓚婅繙錛屾壘涓嶅埌鐪熷疄鐨勬垜銆?br>      涓や釜鏈堝緢蹇氨榪囧幓浜嗭紝鎴戝彧鑳介潤涓嬪績鏉ュ幓鍋氫簨鎯咃紝鎶婅繖浜涚儲浜虹殑浜嬶紝閮芥姏浜庤剳鍚庛傝礬榪樻槸瑕佽蛋錛屼漢鎬繪槸瑕佹垚闀跨殑錛屽笇鏈涜兘浠庡け璐ヤ腑璧板嚭鏉ャ?br>      璁頒笅浠婂ぉ鐨勫け璐ワ紝浠ヤ綔鑷媺銆?/p>

bloodbao 2008-08-06 10:36 鍙戣〃璇勮
]]>
DX10sample鐨勯槾褰?/title><link>http://m.shnenglu.com/bloodbao/archive/2008/07/20/56669.html</link><dc:creator>bloodbao</dc:creator><author>bloodbao</author><pubDate>Sun, 20 Jul 2008 02:48:00 GMT</pubDate><guid>http://m.shnenglu.com/bloodbao/archive/2008/07/20/56669.html</guid><wfw:comment>http://m.shnenglu.com/bloodbao/comments/56669.html</wfw:comment><comments>http://m.shnenglu.com/bloodbao/archive/2008/07/20/56669.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.shnenglu.com/bloodbao/comments/commentRss/56669.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/bloodbao/services/trackbacks/56669.html</trackback:ping><description><![CDATA[<img src="http://m.shnenglu.com/images/cppblog_com/bloodbao/self-shadow.jpg" border=0><br>涓昏鏄敤妯℃澘緙撳啿鍖烘潵瀹炵幇銆?br>DepthStencilState StencilShadow<br>{<br>    DepthEnable = true;<br>    DepthWriteMask = ZERO;<br>    DepthFunc = LESS;<br>    <br>    StencilEnable = true;<br>    StencilReadMask = 0xFFFFFFFF;<br>    StencilWriteMask = 0xFFFFFFFF;<br>    <br>    FrontFaceStencilFunc = ALWAYS;<br>    FrontFaceStencilPass = INCR;<br>    FrontFaceStencilFail = Keep;<br>    <br>    BackFaceStencilFunc = ALWAYS;<br>    BackFaceStencilPass = DECR;<br> 銆BackFaceStencilFail = Keep;<br>};<br>BlendState AdditiveBlending<br>{<br>    AlphaToCoverageEnable = FALSE;<br>    BlendEnable[0] = TRUE;<br>    SrcBlend = SRC_ALPHA ;<br>    DestBlend = INV_SRC_ALPHA ;<br>    BlendOp = ADD;<br>    SrcBlendAlpha = ZERO;<br>    DestBlendAlpha = ZERO;<br>    BlendOpAlpha = ADD;<br>    RenderTargetWriteMask[0] = 0x0F;<br>};<br> <h2><a name=Rendering_Shadows></a>Rendering Shadows</h2> <p>At the top level, the rendering steps look like the following:</p> <ul> <li>If ambient lighting is enabled, render the entire scene with ambient only. <li>For each light in the scene, do the following: <ul> <li>Disable depth-buffer and frame-buffer writing. <li>Prepare the stencil buffer render states for rendering the shadow volume. <li>Render the shadow volume mesh with a vertex extruding shader. This sets up the stencil buffer according to whether or not the pixels are in the shadow volume. <li>Prepare the stencil buffer render states for lighting. <li>Prepare the additive blending mode. <li>Render the scene for lighting with only the light being processed. </li> </ul> </li> </ul> <br>Shadow Volume騫朵笉鏄竴涓病鏈夌己闄風殑鎶鏈傞櫎浜嗛珮鍍忕礌濉厖鐜囧拰闃村獎杈圭晫媯嫻嬪錛屽湪緇樺埗榪囩▼涓繕鍙兘鍑虹幇閿欒銆傞敊璇殑涓昏鍘熷洜鏄綋涓涓嚑浣曟ā鍨嬪湪璁$畻鑷槾褰辨椂錛屽畠鐨勯潰閫氬父琚畬鍏ㄧ収浜垨鑰呭畬鍏ㄥ彉鏆楋紝榪欏彇鍐充簬榪欎釜闈㈡槸鍚︽湞鍚戝厜婧愩傚厜鐓ц綆楀繀欏諱嬌鐢ㄩ《鐐規硶鍚戣岄潪琛ㄩ潰娉曞悜銆傚浜庢帴榪戝鉤琛屽厜婧愮殑闈紝瀹冧細琚畬鍏ㄧ収浜垨鑰呭畬鍏ㄥ彉鏆楋紝鑰屽疄闄呬笂搴旇閮ㄥ垎澶勪簬鍏夋簮涓傝繖鏄粠stencil shadow volume涓戶鎵挎潵鐨勯棶棰橈紝鍦ㄨ綆楅槾褰辨椂蹇呴』琚冭檻銆傝繖涓棶棰樺彲浠ラ氳繃澧炲姞mesh瀵嗗害鏉ヨВ鍐籌紝榪欎篃澧炲姞浜嗗鐞唌esh鐨勬椂闂淬傞《鐐規硶鍚戝拰闈㈡硶鍚戣秺鎺ヨ繎錛岃〃闈㈢殑闂灝辮秺灝戙傚鏋滅▼搴忎笉鑳芥妸闂闄愬埗鍦ㄥ彲鎺ュ彈鐨勮寖鍥村唴錛屽氨蹇呴』鑰冭檻浣跨敤鍏朵粬鐨勭畻娉曪紝姣斿PRT鎴栬匰hadow Map銆? <img src ="http://m.shnenglu.com/bloodbao/aggbug/56669.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/bloodbao/" target="_blank">bloodbao</a> 2008-07-20 10:48 <a href="http://m.shnenglu.com/bloodbao/archive/2008/07/20/56669.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>dx10涔嬫ā鎷烡X9http://m.shnenglu.com/bloodbao/archive/2008/07/20/56663.htmlbloodbaobloodbaoSun, 20 Jul 2008 02:31:00 GMThttp://m.shnenglu.com/bloodbao/archive/2008/07/20/56663.htmlhttp://m.shnenglu.com/bloodbao/comments/56663.htmlhttp://m.shnenglu.com/bloodbao/archive/2008/07/20/56663.html#Feedback0http://m.shnenglu.com/bloodbao/comments/commentRss/56663.htmlhttp://m.shnenglu.com/bloodbao/services/trackbacks/56663.htmlFixed-function Lighting Pipeline
ColorsOutput CalcLighting( float3 worldNormal, float3 worldPos, float3 cameraPos )
{
    ColorsOutput output = (ColorsOutput)0.0;
   
    for(int i=0; i<8; i++)
{
     //鍏夌嚎鏂瑰悜
        float3 toLight = g_lights[i].Position.xyz - worldPos;
         //紱誨厜婧愯窛紱?br>        float lightDist = length( toLight );
         //atten錛濓紙1/(a[2]*d*d+a[1]*d+a[1])
        float fAtten = 1.0/dot( g_lights[i].Atten, float4(1,lightDist,lightDist*lightDist,0) );
        float3 lightDir = normalize( toLight );
         //H
        float3 halfAngle = normalize( normalize(-cameraPos) + lightDir );
       
         //Phong鏂圭▼錛岄愰《鐐瑰厜鐓?br>        output.Diffuse += max(0,dot( lightDir, worldNormal ) * g_lights[i].Diffuse * fAtten) + g_lights[i].Ambient;
        output.Specular += max(0,pow( dot( halfAngle, worldNormal ), 64 ) * g_lights[i].Specular * fAtten );
    }
   
    return output;
}
綆鍗旳LPHA嫻嬭瘯
//
// PS for rendering with alpha test
//
float4 PSAlphaTestmain(PSSceneIn input) : COLOR0
{       
         float4 color =  tex2D( g_samLinear, g_txDiffuse, input.tex ) * input.colorD;
         if( color.a < 0.5 )
                 discard;
         return color;
}
闆懼寲錛?/p>

//
// Calculates fog factor based upon distance
//
// E is defined as the base of the natural logarithm (2.71828)
float CalcFogFactor( float d )
{
         float fogCoeff = 1.0;
        
         if( FOGMODE_LINEAR == g_fogMode )
         {
                 fogCoeff = (g_fogEnd - d)/(g_fogEnd - g_fogStart);
         }
         else if( FOGMODE_EXP == g_fogMode )
         {
                 fogCoeff = 1.0 / pow( E, d*g_fogDensity );
         }
         else if( FOGMODE_EXP2 == g_fogMode )
         {
                 fogCoeff = 1.0 / pow( E, d*d*g_fogDensity*g_fogDensity );
         }
        
         return clamp( fogCoeff, 0, 1 );
}

Finally, the pixel shader uses the fog factor to determine how much of the original color and how much of the fog color to output to the pixel.

鏈鍚庯紝PS浣跨敤闆懼寲鍙傛暟紜畾闆鵑鑹插拰綰圭悊棰滆壊鐨勬販鍚堢▼搴︺?br>return fog * normalColor + (1.0 - fog)*g_fogColor;



bloodbao 2008-07-20 10:31 鍙戣〃璇勮
]]>
鐢憋幾鏂囦歡瀵煎叆寮曞彂鐨勩傘?/title><link>http://m.shnenglu.com/bloodbao/archive/2008/07/17/56387.html</link><dc:creator>bloodbao</dc:creator><author>bloodbao</author><pubDate>Thu, 17 Jul 2008 02:26:00 GMT</pubDate><guid>http://m.shnenglu.com/bloodbao/archive/2008/07/17/56387.html</guid><wfw:comment>http://m.shnenglu.com/bloodbao/comments/56387.html</wfw:comment><comments>http://m.shnenglu.com/bloodbao/archive/2008/07/17/56387.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://m.shnenglu.com/bloodbao/comments/commentRss/56387.html</wfw:commentRss><trackback:ping>http://m.shnenglu.com/bloodbao/services/trackbacks/56387.html</trackback:ping><description><![CDATA[<p>鍒氬紑濮嬪涔燚X10錛屽彂瑙夋ā鍨嬫枃浠跺凡緇忎粠鍘熸潵鐨刋鏍煎紡鍙樹負SDKMESH鏍煎紡錛屼篃灝辨槸璇碊X10涓嶇洿鎺ユ敮鎸乆鏂囦歡浜嗭紝<br>閭g幇鍦ㄨ鎬庝箞鍔烇紝鎴戝湪NVSDK涓嬫壘鍒頒簡浠栫殑瑙e喅鏂規錛屽厛鐢―X9鐨勬帴鍙f墦寮X鏂囦歡錛屽啀鐢―X10鎺ュ彛鏉ユ覆鏌撴枃浠躲?br>         鍦―X10涓嬶紝緙哄皯浜嗗緢澶氫互鍓嶅湪DX9涓嬬殑鍏冪礌銆傛瘮濡傦紝鍏夌収錛屾潗璐ㄧ瓑銆?br>         瑕佸疄鐜拌繖浜涘厓绱狅紝灝卞繀欏誨湪SHADER涓嬫墜鍔ㄥ幓瀹炵幇錛岄偅灝辨剰鍛崇潃浣犲繀欏葷啛鎮夊浘褰㈠鐨勫唴瀹癸紝鐗瑰埆鏄叾涓殑鍏夌収妯″瀷絳夊唴瀹廣?br>姣斿錛屾柟鍚戝厜鐨勫疄鐜幫細<br>    //directional light-----------------------------------------------------------------<br>    float3 lightDir = g_lightPos - In.worldPos;<br>    float3 lightDirNorm = normalize(lightDir);<br>    float3 SDir = normalize( g_lightPos - g_eyePos);<br>    float cosGammaDir = dot(SDir, V);<br>    float dirLighting = g_Kd*dirLightIntensity*saturate( dot( N,lightDirNorm ) );<br>    //diffuse<br>    float3 diffuseDirLight = dirLighting*exDir;        <br>    //airlight<br>    float3 dirAirLight = phaseFunctionSchlick(cosGammaDir)* dirLightIntensity*float3(1-exDir.x,1-exDir.y,1-exDir.z);<br>    //specular<br>    float3 specularDirLight = saturate( pow(  dot(lightDirNorm,reflVect),g_specPower)) * dirLightIntensity * g_KsDir * exDir;<br>鐐瑰厜婧愮殑瀹炵幇錛?br>  //point light 1---------------------------------------------------------------------<br>    //diffuse surface radiance and airlight due to point light<br>    float3 pointLightDir = g_PointLightPos - In.worldPos;<br>    //diffuse<br>    float3 diffusePointLight1 = calculateDiffusePointLight(0.1,Dvp,g_DSVPointLight,pointLightDir,N,V);<br>    //airlight<br>    float3 airlight1 = calculateAirLightPointLight(Dvp,g_DSVPointLight,g_VecPointLightEye,V);<br>    //specular<br>    float3 specularPointLight = Specular(g_PointLightIntensity, g_KsPoint, length(pointLightDir), Dvp, g_specPower, normalize(pointLightDir), reflVect);<br>璁$畻鐐瑰厜婧愮殑婕皠鍏夛細<br>float3 calculateDiffusePointLight(float Kd,float Dvp,float Dsv,float3 pointLightDir,float3 N,float3 V)<br>{</p> <p>    float Dsp = length(pointLightDir);<br>    float3 L = pointLightDir/Dsp;<br>    float thetas = acos(dot(N, L));<br>    float lightIntensity = g_PointLightIntensity * 100;<br>    <br>    //spotlight<br>    float angleToSpotLight = dot(-L, g_SpotLightDir);<br>    if(g_useSpotLight)<br>    {    if(angleToSpotLight > g_cosSpotlightAngle)<br>             lightIntensity *= abs((angleToSpotLight - g_cosSpotlightAngle)/(1-g_cosSpotlightAngle));<br>         else<br>             lightIntensity = 0;         <br>    }   <br>    <br>    //diffuse contribution<br>    float t1 = exp(-g_beta.x*Dsp)*max(cos(thetas),0)/Dsp;<br>    float4 t2 = g_beta.x*Gtable.SampleLevel(samLinearClamp, float2((g_beta.x*Dsp-g_diffXOffset)*g_diffXScale, (thetas-g_diffYOffset)*g_diffYScale),0)/(2*PI);<br>    float rCol = (t1+t2.x)*exp(-g_beta.x*Dvp)*Kd*lightIntensity/Dsp;<br>    float diffusePointLight = float3(rCol,rCol,rCol);  <br>    return diffusePointLight.xxx;<br>}<br>璁$畻楂樺厜錛?br>float3 Specular(float lightIntensity, float Ks, float Dsp, float Dvp, float specPow, float3 L, float3 VReflect)<br>{<br>    lightIntensity = lightIntensity * 100;<br>    float LDotVReflect = dot(L,VReflect);<br>    float thetas = acos(LDotVReflect);</p> <p>    float t1 = exp(-g_beta*Dsp)*pow(max(LDotVReflect,0),specPow)/Dsp;<br>    float4 t2 = g_beta.x*G_20table.SampleLevel(samLinearClamp, float2((g_beta.x*Dsp-g_20XOffset)*g_20XScale, (thetas-g_20YOffset)*g_20YScale),0)/(2*PI);<br>    float specular = (t1+t2.x)*exp(-g_beta.x*Dvp)*Ks*lightIntensity/Dsp;<br>    return specular.xxx;<br>}<br>涓嬩竴姝ワ紝鑰冭檻濡備綍涓嶉氳繃DX9鎺ュ彛錛岀洿鎺ュ鍏鏂囦歡銆?/p> <img src ="http://m.shnenglu.com/bloodbao/aggbug/56387.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.shnenglu.com/bloodbao/" target="_blank">bloodbao</a> 2008-07-17 10:26 <a href="http://m.shnenglu.com/bloodbao/archive/2008/07/17/56387.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鏀懼亣浼戞伅http://m.shnenglu.com/bloodbao/archive/2008/07/15/56197.htmlbloodbaobloodbaoTue, 15 Jul 2008 07:53:00 GMThttp://m.shnenglu.com/bloodbao/archive/2008/07/15/56197.htmlhttp://m.shnenglu.com/bloodbao/comments/56197.htmlhttp://m.shnenglu.com/bloodbao/archive/2008/07/15/56197.html#Feedback0http://m.shnenglu.com/bloodbao/comments/commentRss/56197.htmlhttp://m.shnenglu.com/bloodbao/services/trackbacks/56197.html      鏈潵鎯沖啓涓▼搴忕殑錛屽彲鏄垜鍙戣鑷凡鐨勮嚜鎺у姏澶樊浜嗐傚垰鎽稿埌涓鏈皬璇達紝灝辮榪蜂綇浜嗭紝浠ヨ嚦浜庤繖涓鍛ㄩ兘鍦ㄧ湅閭f湰灝忚錛岀▼搴忔柟闈㈡槸涓鐐硅繘搴﹂兘鏈夈傞偅鏄湰鍏充簬SC鐨勫皬璇達紝浣嗕負涓涓槦闄呰糠錛屾垜娣辨繁鍦拌鍚稿紩浜嗭紝姣忓綋鎴戜竴鎽稿埌鐢佃剳錛屽氨涓嶈嚜瑙夊湴鐐硅繘灝忚鐨勭綉欏典腑錛岃繘鍏ラ偅涓猄C鐨勮櫄騫葷┖闂淬?br>鐪嬪畬灝忚錛屾湰浠ヤ負榪樿兘騫茬偣浠涔堬紝緇撴灉鍙堜笅浜嗘湰DOOM鍚ず褰曪紝鍙堣糠榪涘幓浜嗐傚搸錛岀湅鏉ュ皬璇存槸涓嶈兘紕板暒錛屾垜鍙笉鎯蟲案榪滃憜鍦ㄨ繖涓鍦版柟銆?br>絳夋壘鍒板伐浣滐紝鍐嶇湅灝忚鍚с?

bloodbao 2008-07-15 15:53 鍙戣〃璇勮
]]>
青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            欧美国产日韩在线| 亚洲欧美日产图| 9久草视频在线视频精品| 国产精品少妇自拍| 国产精品亚洲а∨天堂免在线| 欧美四级电影网站| 国产精品乱人伦一区二区| 欧美精品成人一区二区在线观看| 久久天堂国产精品| 久久久久久综合网天天| 久久精品国产清高在天天线| 午夜免费在线观看精品视频| 欧美专区亚洲专区| 蜜臀91精品一区二区三区| 欧美日韩爆操| 欧美亚洲第一页| 国产午夜精品全部视频播放 | 黄网动漫久久久| 国产精品免费看| 国产一区91| 亚洲精品免费一二三区| 亚洲一品av免费观看| 欧美一区二区视频在线观看| 久久亚洲视频| 亚洲免费成人av电影| 欧美在线视频一区二区三区| 欧美成人dvd在线视频| 欧美日精品一区视频| 黑人一区二区三区四区五区| 亚洲精品一区二区三区不| 羞羞视频在线观看欧美| 欧美高清在线一区二区| 亚洲一区二区三区免费观看 | 免费观看成人鲁鲁鲁鲁鲁视频| 欧美成人国产va精品日本一级| 亚洲麻豆av| 欧美一区午夜视频在线观看| 欧美区二区三区| 在线观看日韩av先锋影音电影院| 亚洲一区不卡| 亚洲黄色视屏| 亚洲视频日本| 欧美大片在线观看| 亚洲一区二区三区午夜| 久久影院午夜论| 国产久一道中文一区| 一区二区三区回区在观看免费视频| 久久国产精品72免费观看| 亚洲精品乱码久久久久久蜜桃91| 久久精品免费观看| 国产精品日韩欧美| 亚洲一级网站| 日韩一级成人av| 欧美1区视频| 亚洲第一在线视频| 美女脱光内衣内裤视频久久影院| 亚洲欧美国产精品专区久久| 国产精品porn| 亚洲一级在线观看| 日韩亚洲欧美高清| 欧美片网站免费| 一区二区三区黄色| 91久久夜色精品国产九色| 欧美成人在线网站| 亚洲精品国产系列| 亚洲黄色成人| 欧美日韩国产一中文字不卡| 亚洲性视频h| 亚洲天天影视| 国产精品亚洲人在线观看| 亚洲欧美中文在线视频| 亚洲天堂网在线观看| 国产欧美综合一区二区三区| 欧美专区在线观看一区| 久久精品二区| 在线精品视频一区二区| 亚洲高清自拍| 欧美性事免费在线观看| 亚洲一区三区视频在线观看| 亚洲一区二区三区在线| 国产精品欧美经典| 久久xxxx| 久久日韩粉嫩一区二区三区| 精品成人免费| 亚洲高清在线播放| 欧美日韩一区免费| 久久精品夜色噜噜亚洲a∨ | 欧美黑人在线观看| 这里只有视频精品| 亚洲欧美日本国产专区一区| 国产亚洲va综合人人澡精品| 麻豆国产va免费精品高清在线| 美女黄色成人网| 亚洲少妇一区| 久久九九国产精品| 夜久久久久久| 久久国产精品一区二区三区四区 | 午夜亚洲激情| 亚洲免费中文| 91久久综合亚洲鲁鲁五月天| 亚洲三级影院| 欧美日韩综合网| 久久综合伊人77777| 欧美黄色一区| 久久都是精品| 欧美日韩理论| 久热精品视频在线观看一区| 欧美精品在线看| 久久久av毛片精品| 欧美日韩一区二区三区四区在线观看 | 99精品久久久| 久久国产精品久久国产精品| 亚洲视频第一页| 欧美69视频| 噜噜噜久久亚洲精品国产品小说| 国产精品magnet| 亚洲伦伦在线| 亚洲精一区二区三区| 欧美在线观看视频| 午夜精品视频网站| 欧美日韩精品系列| 91久久国产综合久久| 亚洲国产精品久久精品怡红院 | 欧美日韩亚洲天堂| 欧美电影在线播放| 精品动漫一区| 久久精品人人做人人综合| 午夜视频久久久| 欧美日韩免费| 一本一本久久a久久精品牛牛影视| 亚洲日本中文| 欧美大片免费观看| 亚洲韩国日本中文字幕| 最新成人av在线| 欧美第十八页| 亚洲精品一区二区三区在线观看| 亚洲人在线视频| 麻豆精品一区二区综合av| 乱中年女人伦av一区二区| 国产一区二三区| 久久成人亚洲| 欧美黄色一区二区| 亚洲精品在线电影| 欧美激情视频一区二区三区免费| 亚洲高清视频一区| 在线视频精品| 国产精品视频成人| 先锋影音一区二区三区| 久久久久久久综合日本| 国内精品免费午夜毛片| 久久久久在线| 亚洲国产另类久久久精品极度| 亚洲国产精品va在线看黑人| 欧美成人免费在线| 在线一区二区三区做爰视频网站| 香蕉乱码成人久久天堂爱免费 | 亚洲开发第一视频在线播放| 91久久黄色| 欧美激情一二三区| 亚洲一区二区免费视频| 久久国产精品99精品国产| 国产综合视频| 欧美h视频在线| 亚洲图中文字幕| 久久精品视频免费播放| 亚洲国产精品成人综合色在线婷婷 | 欧美精品在线免费播放| 99精品免费视频| 久久国产日韩欧美| 亚洲激情网站免费观看| 欧美视频免费看| 欧美一区二区三区另类| 亚洲国产另类精品专区| 欧美一区二区| 亚洲国产精品久久久久久女王| 欧美—级a级欧美特级ar全黄| 亚洲午夜激情| 欧美电影免费观看大全| 亚洲女ⅴideoshd黑人| 亚洲二区在线视频| 国产女优一区| 欧美日韩视频一区二区| 欧美制服丝袜| 99在线热播精品免费| 麻豆成人91精品二区三区| 亚洲欧美精品伊人久久| 亚洲第一精品在线| 国产欧美三级| 欧美午夜视频在线观看| 久久一区中文字幕| 亚洲欧美综合精品久久成人 | 午夜精品影院| 一区二区三区日韩精品视频| 久久天堂成人| 亚洲欧美日韩在线观看a三区 | 久久精品国产一区二区三区 | 久久精品九九| 亚洲在线视频一区| 夜夜夜久久久| 亚洲日本一区二区|