|
|
|
|
|
|
Shader "hidden/preview/_E2A7472C" |
|
|
|
Shader "hidden/preview/Gradient_BB2657E7" |
|
|
|
{ |
|
|
|
Properties |
|
|
|
{ |
|
|
|
|
|
|
void Unity_AACheckerboard_float(float2 uv, float4 colorA, float4 colorB, float3 aaTweak, float2 frequency, out float4 result) |
|
|
|
void Unity_Gradient_BB2657E7_float(float value, out float4 result) |
|
|
|
float4 derivatives = float4(ddx(uv), ddy(uv)); |
|
|
|
float2 duv_length = sqrt(float2(dot(derivatives.xz, derivatives.xz), dot(derivatives.yw, derivatives.yw))); |
|
|
|
float width = 0.5f; |
|
|
|
float2 distance3 = 2.0f * abs(frac(uv.xy * frequency) - 0.5f) - width; |
|
|
|
float2 scale = aaTweak.x / duv_length.xy; |
|
|
|
float2 blend_out = saturate((scale - aaTweak.zz) / (aaTweak.yy - aaTweak.zz)); |
|
|
|
float2 vector_alpha = clamp(distance3 * scale.xy * blend_out.xy, -1.0f, 1.0f); |
|
|
|
float alpha = saturate(0.5f + 0.5f * vector_alpha.x * vector_alpha.y); |
|
|
|
result= lerp(colorA, colorB, alpha.xxxx); |
|
|
|
float3 color0=float3(1,1,1); |
|
|
|
float colorp0=0; |
|
|
|
float3 color1=float3(1,1,1); |
|
|
|
float colorp1=1; |
|
|
|
float3 gradcolor = color0; |
|
|
|
float colorLerpPosition0=smoothstep(colorp0,colorp1,value); |
|
|
|
gradcolor = lerp(gradcolor,color1,colorLerpPosition0); |
|
|
|
float alpha0=1; |
|
|
|
float alphap0=0; |
|
|
|
float alpha1=1; |
|
|
|
float alphap1=1; |
|
|
|
float gradalpha = alpha0; |
|
|
|
float alphaLerpPosition0=smoothstep(alphap0,alphap1,value); |
|
|
|
gradalpha = lerp(gradalpha,alpha1,alphaLerpPosition0); |
|
|
|
result = float4(gradcolor,gradalpha); |
|
|
|
} |
|
|
|
struct GraphVertexInput |
|
|
|
{ |
|
|
|
|
|
|
UNITY_VERTEX_INPUT_INSTANCE_ID |
|
|
|
}; |
|
|
|
struct SurfaceInputs{ |
|
|
|
half4 uv0; |
|
|
|
float4 _E2A7472C_result; |
|
|
|
float4 Gradient_BB2657E7_result; |
|
|
|
float4 _E2A7472C_uv; |
|
|
|
float4 _E2A7472C_colorA; |
|
|
|
float4 _E2A7472C_colorB; |
|
|
|
float4 _E2A7472C_aaTweak; |
|
|
|
float4 _E2A7472C_frequency; |
|
|
|
float Gradient_BB2657E7_value; |
|
|
|
half4 uv0 = IN.uv0; |
|
|
|
float4 _E2A7472C_result; |
|
|
|
Unity_AACheckerboard_float(uv0, _E2A7472C_colorA, _E2A7472C_colorB, _E2A7472C_aaTweak, _E2A7472C_frequency, _E2A7472C_result); |
|
|
|
float4 Gradient_BB2657E7_result; |
|
|
|
Unity_Gradient_BB2657E7_float(Gradient_BB2657E7_value, Gradient_BB2657E7_result); |
|
|
|
surface._E2A7472C_result = _E2A7472C_result; |
|
|
|
surface.Gradient_BB2657E7_result = Gradient_BB2657E7_result; |
|
|
|
return surface; |
|
|
|
} |
|
|
|
ENDCG |
|
|
|
|
|
|
struct GraphVertexOutput |
|
|
|
{ |
|
|
|
float4 position : POSITION; |
|
|
|
half4 uv0 : TEXCOORD; |
|
|
|
|
|
|
|
}; |
|
|
|
GraphVertexOutput vert (GraphVertexInput v) |
|
|
|
{ |
|
|
|
|
|
|
o.uv0 = v.texcoord0; |
|
|
|
|
|
|
|
float4 uv0 = IN.uv0; |
|
|
|
|
|
|
|
surfaceInput.uv0 =uv0; |
|
|
|
|
|
|
|
return half4(surf._E2A7472C_result.x, surf._E2A7472C_result.y, surf._E2A7472C_result.z, 1.0); |
|
|
|
return half4(surf.Gradient_BB2657E7_result.x, surf.Gradient_BB2657E7_result.y, surf.Gradient_BB2657E7_result.z, 1.0); |
|
|
|
} |
|
|
|
ENDCG |
|
|
|
} |