Jump to content

Recommended Posts

Posted

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.

Posted

You could either do it via passing a uniform to the shader or modify the UV coords of the verts using SetVertexTexCoords

Windows 7 x64 - Q6700 @ 2.66GHz - 4GB RAM - 8800 GTX

ZBrush - Blender

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...