Skip to content

Feature Request for Distortion Shader #75

@Ajido

Description

@Ajido

thank you for providing such an amazing shader. This is the best method for urp distortion.
i have added the following feature for my own use, but no idea about CustomEditor, so I haven't been able to make PR for it.. would it be possible to add these features?

  • Use Vertex Color Alpha as Distortion Intensity. For Color over Lifetime
// "mul" is preferable not "add"
half distortionIntensity = input.color.w * _DistortionIntensity
  • Distortion Base Map R/G Mul
distortion.x = distortionSrc[(uint)_BaseMapChannelsX] * _DistortionRMultiplier;
distortion.y = distortionSrc[(uint)_BaseMapChannelsY] * _DistortionGMultiplier;
  • Distortion Base Map UV Movement
baseMapUv.x += _Time.y * _DistortionUSpeed;
baseMapUv.y += _Time.y * _DistortionVSpeed;

unsure if these features would be beneficial for Nova Shader. maybe i should fork. thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions