- Home /
Mesh renderer with three submesh textures - only one renders properly, others are solid colors
I am using the Bézier Path Creator asset and its Road Mesh Creator to programmatically generate a race track and surrounding surfaces (grass, gravel, pavement). As you can see in the screenshot below, the pavement material is rendering properly, the gravel and grass are just solid colors.
All three are 100x100 png textures with the same sort of pixelated appearance. The materials are Unlit/Texture and Tiling 1x100. I have set the Render Queue in order to get them layered properly (grass - geometry 2000, gravel - geometry+1 2001, pavement - geometry+2 2002).
I'm not sure what other information will be useful. Just ask for more details if needed.
Thanks!
Answer by medinaline · Dec 25, 2019 at 04:02 AM
The two additional submeshes and their triangles weren't also being added into the list of UVs. Fixed it.
Your answer
Follow this Question
Related Questions
Is it better to use multiple materials or bake texture on low poly assets? 2 Answers
Submeshs doesn't combine with materials 1 Answer
Texture problem, multiple uv's & materials (blender) 2 Answers
So, what's the problem with this code? 1 Answer
How Do I Apply An Additional Mesh, So That Both Meshes Show Up? 0 Answers