Unity 5 standard shader transparency not working on mobile
Hi
I set these properties of material to achieve fade-in effect on material but it is not work on android mobile.Kindly let me know how i do this effect through standard shader.
Material material = this.materialCarry.GetComponent().material; material.SetFloat("_Mode", 2); material.SetFloat("_Mode", 2); material.SetInt("_SrcBlend", (int)UnityEngine.Rendering.BlendMode.SrcAlpha); material.SetInt("_DstBlend", (int)UnityEngine.Rendering.BlendMode.OneMinusSrcAlpha); material.SetInt("_ZWrite", 1); material.DisableKeyword("_ALPHATEST_ON"); material.EnableKeyword("_ALPHABLEND_ON"); material.DisableKeyword("_ALPHAPREMULTIPLY_ON"); material.renderQueue = 3000; material.SetColor("_Color", cColor = Color.Lerp(cColor, fadeColor, Time.deltaTime * fadeSpeed));
Your answer
Follow this Question
Related Questions
Problem with overlapping objects and transparency 0 Answers
LWRP lowest android version 0 Answers
Leaves disappear in game mode 0 Answers
extend Mobile-Bumped and Mobile-BumpedSpec.shader with color 1 Answer
Shader Transparency problem 1 Answer