2D Toolkit Forum

2D Toolkit => Support => Topic started by: stacho on November 15, 2012, 09:27:28 pm

Title: Weird colors are showing up on procedurally generated mesh
Post by: stacho on November 15, 2012, 09:27:28 pm
Hi,
I am generating mesh with material of tk2d solid vertex shader which has set up white texture. However, from time to time, there are rendered weird colors on the mesh and I can't figure out why. I am attaching pic for clear understanding. (http://patrikstas.com/mesh.png)
I appreciate any advice, thank you.
Title: Re: Weird colors are showing up on procedurally generated mesh
Post by: unikronsoftware on November 15, 2012, 09:41:44 pm
Did you create vertex colors? The built in shaders use vertex colors, and if you didn't create them they'll get random values.
Title: Re: Weird colors are showing up on procedurally generated mesh
Post by: stacho on November 16, 2012, 02:47:52 pm
You are right. Thank you very much  :)