[M] foam add color
This commit is contained in:
@@ -107,11 +107,11 @@ Material:
|
||||
- _GlossyReflections: 0
|
||||
- _HorizonDistance: 26.6
|
||||
- _InterscetionSpeed: 1
|
||||
- _IntersectionClipping: 0.741
|
||||
- _IntersectionClipping: 0.735
|
||||
- _IntersectionDurationMulti: 1
|
||||
- _IntersectionDurationMulti1: 3.45
|
||||
- _IntersectionDurationMulti2: 1.45
|
||||
- _IntersectionFalloff: 0.5
|
||||
- _IntersectionFalloff: 0.451
|
||||
- _IntersectionLength: 1.43
|
||||
- _IntersectionSpeed: -0.21
|
||||
- _IntersectionTiling: 1.27
|
||||
|
||||
@@ -111,10 +111,10 @@ float4 ForwardPassFragment(Varyings input) : SV_Target
|
||||
|
||||
float noise = SAMPLE_TEXTURE2D(_IntersectionNoise, sampler_IntersectionNoise, nUV + TIME_VERTEX/_IntersectionTiling * _IntersectionSpeed).r;
|
||||
noise = saturate(noise + sine) * dist + dist;
|
||||
//noise = smoothstep(_IntersectionClipping, 1, noise);
|
||||
noise = step(_IntersectionClipping, noise);
|
||||
noise = smoothstep(_IntersectionClipping, 1, noise);
|
||||
//noise = step(_IntersectionClipping, noise);
|
||||
|
||||
//water.albedo.rgb = lerp(water.albedo.rgb, _IntersectionColor.rgb, noise);
|
||||
water.albedo.rgb = lerp(water.albedo.rgb, _IntersectionColor.rgb, noise);
|
||||
water.alpha = saturate(water.alpha + interSecGradient);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user