- Home /
How do you set the UVs for a decal texture?
Hey guys. I'm procedurally-generating a 2D tile-based world by generating large sub-divided quads and assigning the UVs of each subdivision to a tile in a texture atlas. Which I currently have working like a treat.
Now I'm up to the tricky part. The idea is to use the decal shader to create terrain details like the edge between different terrain types. For example, for every non-sand tile I'd want to give it set its decal UVs to map to one of these -
The thing I'm stumped on is - how can I give the Decal texture a separate set a UVs from the Main texture seeing as the main texture's UVs seem to be based on the mesh's geometry?
Your answer
Follow this Question
Related Questions
Shader Decal - Multiply / Add not simple blend by alpha 0 Answers
Pass "external" uv's to shader 0 Answers
Render a sprite only when it's on the parent but not other sprites. 0 Answers
Name of players on coats 2 Answers
COLORMASK & writing to multiple render targets In Deferred doesn't work as expected in DX9 1 Answer