Advertisement
Guest User

Untitled

a guest
Nov 21st, 2014
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. Texture m_CusTexture;
  2. float m_Time;
  3.  
  4. float3x3 getTextureTransform()
  5. {
  6. float posU = -fmod(m_Time/8, 1);
  7. float posV = 0;
  8.  
  9. return float3x3(1, 0, 0, 0, 1, 0, posU, posV, 1);
  10. }
  11.  
  12.  
  13. technique ScrollData
  14. {
  15. pass P0
  16. {
  17. Texture[0] = m_CusTexture;
  18. TextureTransform[0] = getTextureTransform();
  19. TextureTransformFlags[0] = Count2;
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement