Hello Guest

Author Topic: Weird colors are showing up on procedurally generated mesh  (Read 3508 times)

stacho

  • Newbie
  • *
  • Posts: 2
    • View Profile
Weird colors are showing up on procedurally generated mesh
« 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.
I appreciate any advice, thank you.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Weird colors are showing up on procedurally generated mesh
« Reply #1 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.

stacho

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Weird colors are showing up on procedurally generated mesh
« Reply #2 on: November 16, 2012, 02:47:52 pm »
You are right. Thank you very much  :)