HandGrabGlow Class
Extends MonoBehaviour
HandGrabGlow controls the glow properties of the OculusHand material to get a glow effect when pinch / palm grabbing objects depending on the per finger pinch / palm strength.
To achive the glow effect, it also generates a custom UV channel and using the joints in the hand visual component adds per finger mask information.
virtual void OnEnable ( )
virtual void OnDisable ( )
void InjectAllHandGrabGlowSkinnedMeshRenderer handRenderer,
Color grabbingColor,
Color hoverColor,
float colorChangeSpeed,
float fadeStartTime,
float glowStrengthChangeSpeed,
bool fadeOut,
float gradientLength,
GlowType glowType )
void InjectHandGrabInteractor
void InjectHandRenderer ( SkinnedMeshRenderer handRenderer )
void InjectMaterialPropertyBlockEditor
void InjectGlowColors ( Color grabbingColor,
Color hoverColor )
void InjectVisualChangeSpeed ( float colorChangeSpeed,
float fadeStartTime,
float glowStrengthChangeSpeed )
void InjectFadeOut ( bool fadeOut )
void InjectGradientLength ( float gradientLength )
ParametersgradientLengthClamped 0.0 to 1.0
void InjectGlowType ( GlowType glowType )