Hello Guest

Author Topic: tk2d:LitBlendVertexColor Vs Unity:Sprites/Diffuse  (Read 5296 times)

drkucho

  • 2D Toolkit
  • Jr. Member
  • *
  • Posts: 72
  • Retro Arcade Freak
    • View Profile
    • Dr. Kucho!
tk2d:LitBlendVertexColor Vs Unity:Sprites/Diffuse
« on: March 24, 2015, 06:10:10 pm »
these shaders seem to work exactly the same, what are the differences ?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: tk2d:LitBlendVertexColor Vs Unity:Sprites/Diffuse
« Reply #1 on: March 25, 2015, 09:12:01 am »
Not looked at the source to Sprites/Diffuse, but when LitBlendVertexColor was written there wasn't an equivalent in Unity. The closest equivalent was way more inefficient.

NMD

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 30
    • View Profile
Re: tk2d:LitBlendVertexColor Vs Unity:Sprites/Diffuse
« Reply #2 on: March 25, 2015, 10:03:43 pm »
Not looked at the source to Sprites/Diffuse, but when LitBlendVertexColor was written there wasn't an equivalent in Unity. The closest equivalent was way more inefficient.

I was going to make my own post but saw this. We upgraded our project to Unity 5 and now the tk2d/LitBlendVertexColor is no longer working properly for me. Are you aware of this and how can we fix it? Thanks!

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: tk2d:LitBlendVertexColor Vs Unity:Sprites/Diffuse
« Reply #3 on: March 25, 2015, 10:42:40 pm »
Quote
now the tk2d/LitBlendVertexColor is no longer working properly for me
What isn't working and what version of tk2d are you using?

NMD

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 30
    • View Profile
Re: tk2d:LitBlendVertexColor Vs Unity:Sprites/Diffuse
« Reply #4 on: March 26, 2015, 06:04:13 pm »
2d toolkit Version 2.5.1. The latest on the asset store.

Everything else works fine but we have 1 semi transparent sprite that was using LitBlendVertexColor and it was drawing very wrong after upgrading. http://i.imgur.com/2RUMIkX.png

I switched it to the standard shader and got it looking correct again btw.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: tk2d:LitBlendVertexColor Vs Unity:Sprites/Diffuse
« Reply #5 on: March 26, 2015, 06:08:13 pm »
Hmmm... could be an issue with the vertex lighting path in Unity 5, we use this path as its the fastest rendering path... I'll look into it.