fix thickness bug.
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -95,9 +95,9 @@ inline void uddBendVertex(inout float3 v, half radius, half width, half thicknes
|
|||||||
v.x = radius * sin(angle) / width;
|
v.x = radius * sin(angle) / width;
|
||||||
#else
|
#else
|
||||||
#ifdef _FORWARD_Z
|
#ifdef _FORWARD_Z
|
||||||
v.y *= thickness;
|
|
||||||
#elif _FORWARD_Y
|
|
||||||
v.z *= thickness;
|
v.z *= thickness;
|
||||||
|
#elif _FORWARD_Y
|
||||||
|
v.y *= thickness;
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user