shader(_:)
Returns a hover effect style that applies hover state data to a custom shader that applies to the entity’s model.
Declaration
static func shader(_ inputs: HoverEffectComponent.ShaderHoverEffectInputs) -> HoverEffectComponent.HoverEffectParameters
- inputs:
A Shaderhovereffectinputs instance that allows you to customize various aspects of this hover effect.
Discussion
The custom shader can be either MaterialX or CustomMaterial.