NovaShader icon indicating copy to clipboard operation
NovaShader copied to clipboard

Feature Request for Distortion Shader

Open Ajido opened this issue 3 months ago • 1 comments

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?

Ajido avatar Mar 27 '24 16:03 Ajido