- Home /
Is "Block color" possible in unity?
Basically I have a series of Cinema 4D models which are different colors but each model is only one color, a kind of "pop art" style I suppose. The problem is when I import them into unity it adds shading to the model. Is there any way that I can turn this "shading" off?
For an idea of the kind of effect I am looking for I have included the below image: 
Thanks in advance!
Answer by qJake · Jul 30, 2010 at 11:55 PM
You need an Unlit shader. Here, try this one I use quite often, that I found on the Unity forums:
Shader "Unlit Diffuse Alpha" { Properties { _Color ("Color Tint", Color) = (1,1,1,1) _MainTex ("Base (RGB) Alpha (A)", 2D) = "white" {} _Cutoff ("Alpha cutoff", Range(0,1)) = 0.5 }
SubShader { Cull Off Tags {"Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="TransparentCutoff"} Pass { Alphatest Greater [_Cutoff] AlphaToMask True ColorMask RGB
SetTexture [_MainTex] {
Combine texture, texture
}
} }
}
Eric's is a better match. Also, "Unlit" and "Diffuse" don't make any sense together.
Answer by Eric5h5 · Jul 31, 2010 at 12:43 AM
If you don't need alpha or textures, use this:
Shader "Solid Color" {
Properties {
_Color ("Main Color", Color) = (1,1,1,1)
}
SubShader {
Pass { Color [_Color] }
}
}
Your answer