Skip to content

Instantly share code, notes, and snippets.

@supertask
Last active January 29, 2020 12:50
Show Gist options
  • Save supertask/2e9b3a482e0e30f24bc50d07c317bebf to your computer and use it in GitHub Desktop.
Save supertask/2e9b3a482e0e30f24bc50d07c317bebf to your computer and use it in GitHub Desktop.
v2f vert_inflation(appdata v) {
v2f o;
v.vertex = LeapGetLateVertexPos(v.vertex, _isLeftHand); // late-latch support
o.vertex = UnityObjectToClipPos(v.vertex + float4(_InflationAmount * v.normal, 0));
return o;
}
fixed4 frag(v2f i) : SV_Target{
return _Color;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment