This mod adds in my own shader and material that can be used for White Knuckle hands. Can display stamina as a hue shift effect on the hands, with parameters controlled via the hand's json file.
In the cosmetic hand's cosmetic-handitem-settings.json, include/change the following to be able to use the shader:
"globalMaterialBase": "Item_Hand_Cosmetic_Phoeboi_Stamina_To_Hue_Material",
"forceGlobalMaterialOntoHands": true,
"useCustomStaminaColor": true
Then for shader parameter control, use the stamina color:
"useCustomStaminaOutlineColor": true,
"customStaminaOutlineColor": {
"r": [FORWARD HUE SHIFT],
"g": [BACKWARDS HUE SHIFT],
"b": [QUADRATIC FACTOR],
"a": 1.0
},
FORWARD HUE SHIFT (red channel): How much forward hue shift occurs with stamina loss. 1.0 is a complete forward loop with total stamina drain.
BACKWARD HUE SHIFT (green channel): How much backward hue shift occurs with stamina loss. 1.0 is a complete backward loop with total stamina drain.
QUADRATIC FACTOR (blue channel): Will cause hue shift speed to increase with stamina drain. 0.0 will make hue shift speed stay consistent throughout the stamina drain. EPILEPSY WARNING IF YOU MESS AROUND WITH THIS PARAMETER.