Question by
GPArk · Aug 17, 2017 at 07:40 AM ·
shaderoutlinetoontoonshading
i want to modify toon outline shader.
i want to set width of outline by object scale. how can i modify this code? could you help me please T.T?
fixed outline; //it is outline width.
v2f vert (appdata_t v)
{
v2f o;
o.pos = v.vertex;
o.pos.xyz += normalize(v.normal.xyz) *outline;
o.pos = UnityObjectToClipPos(o.pos);
return o;
}
Comment