1
Other Packages / Re: Tasharen Fog of War
« on: July 03, 2015, 11:53:06 PM »You forgot to specify the vertex shader in your #pragma define:should be:
#pragma surface surf Lambert alphatest:_Cutoff
#pragma surface surf Lambert vertex:vert alphatest:_Cutoff
Thank you so much, that fixed it! I now have a working Transparent/Cutout/Diffuse shader with Fog of War, very cool! I'd be nice if you could include it, though I'm not sure about any legal complications since it's based on a free Unity shader. It's pretty straightforward to add if you know about those steps though. Another little perf tidbit, I'm finding that about 256x256 is getting to the upper limit on my iPhone 5 in terms of speed -- something like a second or two delay, which can be masked well with the fading.
