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
Your answer
![](https://koobas.hobune.stream/wayback/20220612132911im_/https://answers.unity.com/themes/thub/images/avi.jpg)