Madjack Posted March 18, 2012 Share Posted March 18, 2012 Hi all I simply want to scroll a texture on a mesh. In Blitz3d or Xors I would get the surface brush, brush texture and set the texture's UV in-code via PositionTexture(texture, u,v). I see I can get a material's texture via GetMaterialTexture but there doesn't appear to be commands to adjust UV? Is this something that it has to be handled within the material's associated shader? Quote Link to comment Share on other sites More sharing options...
macklebee Posted March 18, 2012 Share Posted March 18, 2012 i have never played around with this command but I would think the equivalent would be SetVertexTexCoords()... but probably the easiest is to do it by shader... Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
Madjack Posted March 18, 2012 Author Share Posted March 18, 2012 After chatting with MB above, looks like it'll be something to be handled via shader. Will need to investigate... Quote Link to comment Share on other sites More sharing options...
Naughty Alien Posted March 19, 2012 Share Posted March 19, 2012 ..yes, you need to update shader of your interest, attached to specific material, in order to do that.. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.