今天看了葉問二,無論對手犯規在鐘響後偷拳,還被限制無法使用腳。在總總不公平的環境下,仍然能夠突顯出自己的決心,這才能讓別人明瞭出自己的價值。
texCoord( texX, texY, texZ , texW ) means texture coordinate after transforming from the texture matrix [ position goes through world, view, projection, and texture ] . We can use texCoord to fetch texture: 1. float4 color = tex2D( sampler, float2( texX / texW, texY/texW ); 2. float4 color = tex2Dporj( sampler, float4( texX, texY, texZ, texW ) ); The top-two methods will have the same result. Because tex2Dproj operator supports divide w in its interface. http://www.gamedev.net/community/forums/topic.asp?topic_id=408894 http://bbs.gameres.com/showthread.asp?threadid=104316
Comments
Post a Comment