Transparent Shader Issue

Hi,

I’m using the Unity 5 Standard shader with Albedo texture (_MainTex) and an RGBA color (_Color) with 50% transparency, in rendering mode (_Mode) 3 (transparent).

All looks fine but the material is opaque. But if I ‘touch’ the color (slightly changing one of it’s values) it suddenly is transparent as expected.

Out of ideas… can someone enlight me pls…

Ekki

Unity 5.1.1f1 on MacOS

Here’s a little script showing the behavior:

usingUnityEngine;
usingSystem.Collections;

public class Test : MonoBehaviour {

void Start() {
var tObject = GameObject.CreatePrimitive(PrimitiveType.Cube);

tObject.transform.parent = this.transform;

var tMaterial = newMaterial(Shader.Find(“Standard”));
tMaterial.SetFloat(“_Mode”, 3f);
tMaterial.color = newColor(1.0f, 0.0f, 0.0f, 0.3f);

var tRenderer = tObject.GetComponent();
tRenderer.material = tMaterial;
}
}