Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Made with Amplify Shader Editor
- // Available at the Unity Asset Store - http://u3d.as/y3X
- Shader "Shader"
- {
- Properties
- {
- _Color0("Color 0", Color) = (1,1,1,1)
- [HideInInspector] __dirty( "", Int ) = 1
- _Invisible("Invisible Length", Float) = .1
- }
- SubShader
- {
- Tags{ "RenderType" = "Opaque" "Queue" = "Geometry+0" "IsEmissive" = "true" }
- Cull Back
- CGPROGRAM
- #pragma target 3.0
- #pragma geometry GS_Main
- #pragma surface surf Unlit keepalpha addshadow fullforwardshadows
- struct Input
- {
- fixed filler;
- };
- uniform float4 _Color0;
- inline fixed4 LightingUnlit( SurfaceOutput s, half3 lightDir, half atten )
- {
- return fixed4 ( 0, 0, 0, s.Alpha );
- }
- void surf( Input i , inout SurfaceOutput o )
- {
- o.Emission = _Color0.rgb;
- o.Alpha = 1;
- }
- uniform float _Invisible;
- void [maxvertexcount(3)]
- void GS_Main(triangle appdata_full p[3], inout TriangleStream<appdata_full> triStream)
- {
- float d = distance(p[0].vertex, p[2].vertex);
- if (d > _Invisible) return;
- triStream.Append(p[0]);
- triStream.Append(p[1]);
- triStream.Append(p[2]);
- }
- ENDCG
- }
- Fallback "Diffuse"
- CustomEditor "ASEMaterialInspector"
- }
- /*ASEBEGIN
- Version=15301
- -1673;55;1666;953;1003;414.5;1;True;True
- Node;AmplifyShaderEditor.ColorNode;1;-431,-59.5;Float;False;Property;_Color0;Color 0;0;0;Create;True;0;0;False;0;1,1,1,1;1,1,1,0;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
- Node;AmplifyShaderEditor.StandardSurfaceOutputNode;0;0,0;Float;False;True;2;Float;ASEMaterialInspector;0;0;Unlit;1My stuff/Shaky;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;0;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;-1;False;-1;-1;False;-1;0;False;0;0,0,0,0;VertexOffset;True;False;Cylindrical;False;Relative;0;;-1;-1;-1;-1;0;0;0;False;0;0;0;False;-1;-1;0;False;-1;15;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;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;0;2;1;0
- ASEEND*/
- //CHKSM=1578994C45DDC3B3DBBC3E112AEB007ECD9EC1D6
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement