+20
Support for LOD cross fade variable
Hi, Thanks for this great tool!
Wishing for the ability of a shader to use Unity's LOD cross fade feature.
Did manage to get it working but only by hacking the shader code and adding the following, hope this helps.
#pragma multi_compile _ LOD_FADE_CROSSFADE
and on the frag used unity_LODFade.x uniform variable to control the dither transparency blend in this case.
#ifdef LOD_FADE_CROSSFADE
clip( BinaryDither3x3(unity_LODFade.x - 1.5, sceneUVs) );
#endif
the ability to do it both as Dither or Alpha would be very useful aswell.
Thanks!!
Wishing for the ability of a shader to use Unity's LOD cross fade feature.
Did manage to get it working but only by hacking the shader code and adding the following, hope this helps.
#pragma multi_compile _ LOD_FADE_CROSSFADE
and on the frag used unity_LODFade.x uniform variable to control the dither transparency blend in this case.
#ifdef LOD_FADE_CROSSFADE
clip( BinaryDither3x3(unity_LODFade.x - 1.5, sceneUVs) );
#endif
the ability to do it both as Dither or Alpha would be very useful aswell.
Thanks!!
Servicio de atención al cliente por UserEcho