how do you change the outline so it doesn't change with object scale?
laurentopia opened this issue · comments
laurentopia commented
I tried this but that doesn't work
return 10*normalize(input.positionOS + outlineNormalOSUnitVector) * _OutlineWidth; //you can replace it to your own method! Here we will use the most simple method for tutorial reason, it is not the best method!
ColinLeung-NiloCat commented
first you convert positonOS to positionWS
and convert normalOS to normalWS,
then use positionWS + normalize(normalWS) * _OutlineWidth
ColinLeung-NiloCat commented
I have updated the shader to use world space outline width