2D Toolkit Forum

2D Toolkit => Support => Topic started by: drkucho on March 24, 2015, 06:10:10 pm

Title: tk2d:LitBlendVertexColor Vs Unity:Sprites/Diffuse
Post by: drkucho on March 24, 2015, 06:10:10 pm
these shaders seem to work exactly the same, what are the differences ?
Title: Re: tk2d:LitBlendVertexColor Vs Unity:Sprites/Diffuse
Post by: unikronsoftware 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.
Title: Re: tk2d:LitBlendVertexColor Vs Unity:Sprites/Diffuse
Post by: NMD 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!
Title: Re: tk2d:LitBlendVertexColor Vs Unity:Sprites/Diffuse
Post by: unikronsoftware 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?
Title: Re: tk2d:LitBlendVertexColor Vs Unity:Sprites/Diffuse
Post by: NMD 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.
Title: Re: tk2d:LitBlendVertexColor Vs Unity:Sprites/Diffuse
Post by: unikronsoftware 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.