Jump to content
  • 0
reepblue

Texture tiling on decals.

Question

Hey all,

Is it possible by shader alone to create a shader for a decal/model that'll tile the texture like a brush when the scale has been changed? One way I'm thinking of is doing the math in the shader and then tie it to an actor that'll tell the shader the models size. Is there a way to get the face size within the shader itself?

Share this post


Link to post

2 answers to this question

Recommended Posts

  • 0

Should be able to use the final vertex coords to calculate it.

  • Thanks 1

Share this post


Link to post
  • 0

Ok, that's a start. I'll see what I can do with that information. I might need more help as I'm not 100% confident in shader code. 

I'll take a look this weekend, thanks.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   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...