Hello Guest

Author Topic: Setting Tilemap opacity to 100% opaque  (Read 4491 times)

Euthyphro

  • Newbie
  • *
  • Posts: 20
    • View Profile
Setting Tilemap opacity to 100% opaque
« on: June 27, 2014, 09:12:02 pm »
It seems that when I build my tilemap through code, the tiles opacity is not 100%. This is problematic with lighting because it makes the tiles look somewhat transparent. What is more, when using multiple tile layers it causes the layers beneath to show through the top layer.

I've tried turning cursor tile opacity to 1.0 but I do not think this is where the problem rests.

The shader I'm using is tk2d/LitBlendVertexColor. I've tried every other shader as well and this problem persists.

The actual image files are 100% opaque but for some reason with tk2d they are showing up as somewhat transparent whenever I use any lighting shaders.

Any suggestions? How can I set the opacity by code, if this is necessary?


Thanks.

Euthyphro

  • Newbie
  • *
  • Posts: 20
    • View Profile
Re: Setting Tilemap opacity to 100% opaque
« Reply #1 on: June 27, 2014, 10:04:02 pm »
Solved, problem was the z layer of tiles were both set to 0 which caused random behaviour with transparency.