Last active
January 29, 2020 12:50
-
-
Save supertask/2e9b3a482e0e30f24bc50d07c317bebf to your computer and use it in GitHub Desktop.
Explaination of vertex inflation: https://github.com/leapmotion/AppExperiments/blob/master/Assets/AppExperiments/AR%20Experiments/Occlusion%20Hands/InflationHand.shader
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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