Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Texture m_CusTexture;
- float m_Time;
- float3x3 getTextureTransform()
- {
- float posU = -fmod(m_Time/8, 1);
- float posV = 0;
- return float3x3(1, 0, 0, 0, 1, 0, posU, posV, 1);
- }
- technique ScrollData
- {
- pass P0
- {
- Texture[0] = m_CusTexture;
- TextureTransform[0] = getTextureTransform();
- TextureTransformFlags[0] = Count2;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement