keijiro / FaceMeshBarracuda

Lightweight facial capture package for Unity
Apache License 2.0
482 stars 90 forks source link

fixed mobile uv half2 bug #23

Open zwluoqi opened 1 year ago

zwluoqi commented 1 year ago

Precision misalignment on iOS results in errors. need half2 not float2

struct v2f_img
{
    float4 pos : SV_POSITION;
    half2 uv : TEXCOORD0;
    UNITY_VERTEX_INPUT_INSTANCE_ID
    UNITY_VERTEX_OUTPUT_STEREO
};