URP 水波纹渲染 Shader: 自定义涟漪效果
{ "title": "Custom/RippleEffect", "Properties": { "_MainTex": { "name": "Base", "type": "2D", "default": "white" }, "_GradTex": { "name": "Gradient", "type": "2D", "default": "white" }, "_Reflection": { "name": "Reflection Color", "type": "Color", "default": "(0, 0, 0, 0)" }, "_Params1": { "name": "Parameters 1", "type": "Vector", "default": "(1, 1, 0.8, 0)" }, "_Params2": { "name": "Parameters 2", "type": "Vector", "default": "(1, 1, 1, 0)" }, "_Drop1": { "name": "Drop 1", "type": "Vector", "default": "(0.49, 0.5, 0, 0)" }, "_Drop2": { "name": "Drop 2", "type": "Vector", "default": "(0.50, 0.5, 0, 0)" }, "_Drop3": { "name": "Drop 3", "type": "Vector", "default": "(0.51, 0.5, 0, 0)" }, "_SeaLevel": { "name": "SeaLevel", "type": "Range", "default": "-1.0", "range": "(-1.0, 1.0)" } }, "SubShader": { "Tags": { "RenderType": "Transparent", "Queue": "Transparent" }, "Blend": "SrcAlpha OneMinusSrcAlpha", "Cull": "Off", "Pass": { "HLSLPROGRAM": { "#pragma vertex vert", "#pragma fragment frag", "#pragma target 3.0", "#pragma multi_compile_instancing", "#include "Packages/com.unity.render-pipelines.core/ShaderLibrary/Common.hlsl"", "#include "Packages/com.unity.render-pipelines.core/ShaderLibrary/Packing.hlsl"", "#include "Packages/com.unity.render-pipelines.core/ShaderLibrary/Color.hlsl"", "#include "Packages/com.unity.render-pipelines.core/ShaderLibrary/UnityInstancing.hlsl"", "#define PI 3.141592653589793", "Texture2D
原文地址: https://www.cveoy.top/t/topic/ouO9 著作权归作者所有。请勿转载和采集!