You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

84 lines
5.0 KiB

// Made with Amplify Shader Editor
// Available at the Unity Asset Store - http://u3d.as/y3X
Shader "Custom/Checkers"
{
Properties
{
_Albedo("Albedo", Color) = (1,1,1,1)
_Tint("Tint", Range( -1 , 1)) = 0
[HideInInspector] __dirty( "", Int ) = 1
}
SubShader
{
Tags{ "RenderType" = "Opaque" "Queue" = "Geometry+0" }
Cull Back
CGPROGRAM
#pragma target 4.6
#pragma surface surf Standard keepalpha addshadow fullforwardshadows
struct Input
{
half filler;
};
uniform float4 _Albedo;
uniform float _Tint;
void surf( Input i , inout SurfaceOutputStandard o )
{
float temp_output_33_0 = (0.0 + (_Tint - -1.0) * (1.0 - 0.0) / (1.0 - -1.0));
float4 appendResult29 = (float4(temp_output_33_0 , temp_output_33_0 , temp_output_33_0 , 1.0));
float4 blendOpSrc32 = _Albedo;
float4 blendOpDest32 = appendResult29;
float4 transform3 = mul(unity_ObjectToWorld,float4( 0,0,0,1 ));
float4 lerpResult14 = lerp( _Albedo , ( saturate( (( blendOpDest32 > 0.5 ) ? ( 1.0 - ( 1.0 - 2.0 * ( blendOpDest32 - 0.5 ) ) * ( 1.0 - blendOpSrc32 ) ) : ( 2.0 * blendOpDest32 * blendOpSrc32 ) ) )) , ceil( frac( ( ( round( transform3.x ) + round( transform3.y ) + round( transform3.z ) ) / 2.0 ) ) ));
o.Albedo = lerpResult14.xyz;
o.Alpha = 1;
}
ENDCG
}
Fallback "Diffuse"
CustomEditor "ASEMaterialInspector"
}
/*ASEBEGIN
Version=16301
-1741;132;1617;696;2291.399;21.03448;1;True;True
Node;AmplifyShaderEditor.ObjectToWorldTransfNode;3;-1903.136,544.4678;Float;False;1;0;FLOAT4;0,0,0,1;False;5;FLOAT4;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
Node;AmplifyShaderEditor.RoundOpNode;25;-1452.05,648.6464;Float;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.RoundOpNode;26;-1454.238,738.3569;Float;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.RoundOpNode;24;-1452.05,553.4653;Float;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.RangedFloatNode;10;-1089.315,786.6579;Float;False;Constant;_Two;Two;1;0;Create;True;0;0;False;0;2;0;0;0;0;1;FLOAT;0
Node;AmplifyShaderEditor.SimpleAddOpNode;7;-954.3315,524.3302;Float;False;3;3;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.RangedFloatNode;27;-2178.944,260.724;Float;False;Property;_Tint;Tint;1;0;Create;True;0;0;False;0;0;0;-1;1;0;1;FLOAT;0
Node;AmplifyShaderEditor.SimpleDivideOpNode;9;-790.8982,541.6236;Float;False;2;0;FLOAT;0;False;1;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.TFHCRemapNode;33;-1886.399,258.9655;Float;False;5;0;FLOAT;0;False;1;FLOAT;-1;False;2;FLOAT;1;False;3;FLOAT;0;False;4;FLOAT;1;False;1;FLOAT;0
Node;AmplifyShaderEditor.FractNode;11;-660.9491,551.3666;Float;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.ColorNode;1;-1611.683,-85.38494;Float;False;Property;_Albedo;Albedo;0;0;Create;True;0;0;False;0;1,1,1,1;0,0,0,0;True;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
Node;AmplifyShaderEditor.DynamicAppendNode;29;-1546.767,229.1069;Float;False;FLOAT4;4;0;FLOAT;0;False;1;FLOAT;0;False;2;FLOAT;0;False;3;FLOAT;1;False;1;FLOAT4;0
Node;AmplifyShaderEditor.CeilOpNode;17;-506.1743,548.77;Float;False;1;0;FLOAT;0;False;1;FLOAT;0
Node;AmplifyShaderEditor.BlendOpsNode;32;-1150.732,187.9621;Float;False;Overlay;True;2;0;COLOR;0,0,0,0;False;1;FLOAT4;0,0,0,0;False;1;FLOAT4;0
Node;AmplifyShaderEditor.LerpOp;14;-512.2004,160.8983;Float;False;3;0;FLOAT4;0,0,0,0;False;1;FLOAT4;0,0,0,0;False;2;FLOAT;0;False;1;FLOAT4;0
Node;AmplifyShaderEditor.StandardSurfaceOutputNode;0;0,0;Float;False;True;6;Float;ASEMaterialInspector;0;0;Standard;Custom/Checkers;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;False;Back;0;False;-1;0;False;-1;False;0;False;-1;0;False;-1;False;0;Opaque;0.5;True;True;0;False;Opaque;;Geometry;All;True;True;True;True;True;True;True;True;True;True;True;True;True;True;True;True;True;0;False;-1;False;0;False;-1;255;False;-1;255;False;-1;0;False;-1;0;False;-1;0;False;-1;0;False;-1;0;False;-1;0;False;-1;0;False;-1;0;False;-1;False;2;15;10;25;False;0.5;True;0;0;False;-1;0;False;-1;0;0;False;-1;0;False;-1;0;False;-1;0;False;-1;0;False;0;0,0,0,0;VertexOffset;True;False;Cylindrical;False;Relative;0;;-1;-1;-1;1;0;False;0;0;False;-1;-1;0;False;-1;0;0;0;False;0.1;False;-1;0;False;-1;16;0;FLOAT3;0,0,0;False;1;FLOAT3;0,0,0;False;2;FLOAT3;0,0,0;False;3;FLOAT;0;False;4;FLOAT;0;False;5;FLOAT;0;False;6;FLOAT3;0,0,0;False;7;FLOAT3;0,0,0;False;8;FLOAT;0;False;9;FLOAT;0;False;10;FLOAT;0;False;13;FLOAT3;0,0,0;False;11;FLOAT3;0,0,0;False;12;FLOAT3;0,0,0;False;14;FLOAT4;0,0,0,0;False;15;FLOAT3;0,0,0;False;0
WireConnection;25;0;3;2
WireConnection;26;0;3;3
WireConnection;24;0;3;1
WireConnection;7;0;24;0
WireConnection;7;1;25;0
WireConnection;7;2;26;0
WireConnection;9;0;7;0
WireConnection;9;1;10;0
WireConnection;33;0;27;0
WireConnection;11;0;9;0
WireConnection;29;0;33;0
WireConnection;29;1;33;0
WireConnection;29;2;33;0
WireConnection;17;0;11;0
WireConnection;32;0;1;0
WireConnection;32;1;29;0
WireConnection;14;0;1;0
WireConnection;14;1;32;0
WireConnection;14;2;17;0
WireConnection;0;0;14;0
ASEEND*/
//CHKSM=5CFACE81E59398461142413C2FF3AF7915B47B8C