Skip to content

R3F XR customized hands with gradient color, gradient opacity and outline

Notifications You must be signed in to change notification settings

Web3Kev/WebXRCustomHands

Repository files navigation

Custom hands in R3F, XR

This template provides a minimal setup to get a set of WebXR hands with a custom shader that looks like Meta's default hands.

demo 0220

The model is the default model with a rewrap of its UV, so that they align from finger tips to wrist.

This enables us to apply a color gradient as well as an opacity gradient to "erase" the wrists.

You can dynamically change the shader's uniforms like so :

main shader: customShaderMaterialRef.current.uniforms.globalOpacity.value = eventOccurred ? 1 : 0;

outline : outlineMaterialRef.current.uniforms.globalOpacity.value = eventOccurred ? 1 : 0;

live link: https://webxr-custom-hands.vercel.app/

Open in Meta Quest https://www.oculus.com/open_url/?url=https%3A%2F%2Fwebxr-custom-hands.vercel.app

About

R3F XR customized hands with gradient color, gradient opacity and outline

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published