Rick Posted January 7, 2010 Share Posted January 7, 2010 Via code, how can I scale the texture on a plane? Something like how the terrain just has just 1 scale value to scale the terrain textures would be ideal. I've created a water object and it's pretty simple but cool (I think anyway), but when I scale it the texture scales with it. I'd like to give that control as a property but not sure how to scale the material that's on the plane. Quote Link to comment Share on other sites More sharing options...
Niosop Posted January 7, 2010 Share Posted January 7, 2010 You could either do it via passing a uniform to the shader or modify the UV coords of the verts using SetVertexTexCoords Quote Windows 7 x64 - Q6700 @ 2.66GHz - 4GB RAM - 8800 GTX ZBrush - Blender Link to comment Share on other sites More sharing options...
Rick Posted January 7, 2010 Author Share Posted January 7, 2010 The on things that has always mystified me was texture coords. I don't understand how they work 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.