// Made with Amplify Shader Editor
// Available at the Unity Asset Store - http://u3d.as/y3X 
Shader "Custom/Interior/Emissive"
{
	Properties
	{
		_Tint("Tint", Color) = (1,1,1,0)
		_MainTex("Main Texture", 2D) = "white" {}
		_VertexAO("Vertex AO", Range( 0 , 1)) = 0
		_AmbientLight("Ambient Light", Color) = (0.5849056,0.5849056,0.5849056,0)
		_Cubemapinfluence("Cubemap influence", Range( 0 , 1)) = 1
		_Emission("Emission", 2D) = "white" {}
		_EmissionPower("Emission Power", Float) = 1
		[HideInInspector] _texcoord( "", 2D ) = "white" {}
		[HideInInspector] __dirty( "", Int ) = 1
	}

	SubShader
	{
		Tags{ "RenderType" = "Opaque"  "Queue" = "Geometry+0" "IgnoreProjector" = "True" "ForceNoShadowCasting" = "True" "IsEmissive" = "true"  "PreviewType"="Skybox" }
		Cull Back
		CGPROGRAM
		#pragma target 3.0
		#pragma surface surf Unlit keepalpha noshadow noambient novertexlights nolightmap  nodynlightmap nodirlightmap nofog nometa noforwardadd 
		struct Input
		{
			float2 uv_texcoord;
			float4 vertexColor : COLOR;
		};

		uniform sampler2D _Emission;
		uniform float4 _Emission_ST;
		uniform float _EmissionPower;
		uniform float4 _Tint;
		uniform sampler2D _MainTex;
		uniform float4 _MainTex_ST;
		uniform float4 _AmbientLight;
		uniform float _Cubemapinfluence;
		uniform float _VertexAO;

		inline half4 LightingUnlit( SurfaceOutput s, half3 lightDir, half atten )
		{
			return half4 ( 0, 0, 0, s.Alpha );
		}

		void surf( Input i , inout SurfaceOutput o )
		{
			float2 uv_Emission = i.uv_texcoord * _Emission_ST.xy + _Emission_ST.zw;
			float2 uv_MainTex = i.uv_texcoord * _MainTex_ST.xy + _MainTex_ST.zw;
			float4 temp_output_1194_0 = ( _Tint * tex2D( _MainTex, uv_MainTex ) );
			float4 lerpResult1197 = lerp( temp_output_1194_0 , ( temp_output_1194_0 * _AmbientLight ) , _Cubemapinfluence);
			float4 lerpResult1199 = lerp( lerpResult1197 , ( i.vertexColor.b * lerpResult1197 ) , _VertexAO);
			o.Emission = ( ( tex2D( _Emission, uv_Emission ) * _EmissionPower ) + lerpResult1199 ).rgb;
			o.Alpha = 1;
		}

		ENDCG
	}
	CustomEditor "ASEMaterialInspector"
}
/*ASEBEGIN
Version=16100
97;48;1906;1014;563.0222;630.6593;1;True;False
Node;AmplifyShaderEditor.CommentaryNode;1167;-1328.552,-186.9703;Float;False;1704.177;669.5049;;10;1199;1200;1198;1197;1196;1194;1195;1192;1193;1201;FINAL COLOR;0.4980392,1,0,1;0;0
Node;AmplifyShaderEditor.ColorNode;1192;-1270.657,-127.4721;Float;False;Property;_Tint;Tint;0;0;Create;True;0;0;False;0;1,1,1,0;0.9433962,0.9433962,0.9433962,0;True;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
Node;AmplifyShaderEditor.SamplerNode;1193;-1277.736,58.84945;Float;True;Property;_MainTex;Main Texture;1;0;Create;False;0;0;False;0;None;8d7f5852620a3ad439f833410d168fc1;True;0;False;white;Auto;False;Object;-1;Auto;Texture2D;6;0;SAMPLER2D;;False;1;FLOAT2;0,0;False;2;FLOAT;0;False;3;FLOAT2;0,0;False;4;FLOAT2;0,0;False;5;FLOAT;1;False;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
Node;AmplifyShaderEditor.SimpleMultiplyOpNode;1194;-930.8936,30.3587;Float;False;2;2;0;COLOR;0,0,0,0;False;1;COLOR;0,0,0,0;False;1;COLOR;0
Node;AmplifyShaderEditor.ColorNode;1202;-1301.064,-387.5497;Float;False;Property;_AmbientLight;Ambient Light;3;0;Create;True;0;0;False;0;0.5849056,0.5849056,0.5849056,0;1,0.9695486,0.923,0;True;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
Node;AmplifyShaderEditor.SimpleMultiplyOpNode;1196;-689.4592,-63.12474;Float;False;2;2;0;COLOR;0,0,0,0;False;1;COLOR;0,0,0,0;False;1;COLOR;0
Node;AmplifyShaderEditor.RangedFloatNode;1201;-813.816,217.7368;Float;False;Property;_Cubemapinfluence;Cubemap influence;4;0;Create;True;0;0;False;0;1;1;0;1;0;1;FLOAT;0
Node;AmplifyShaderEditor.VertexColorNode;1195;-401.7163,-156.1687;Float;False;0;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
Node;AmplifyShaderEditor.LerpOp;1197;-416.4629,15.63322;Float;False;3;0;COLOR;0,0,0,0;False;1;COLOR;0,0,0,0;False;2;FLOAT;0;False;1;COLOR;0
Node;AmplifyShaderEditor.RangedFloatNode;1205;22.04553,-488.7867;Float;False;Property;_EmissionPower;Emission Power;6;0;Create;True;0;0;False;0;1;0;0;0;0;1;FLOAT;0
Node;AmplifyShaderEditor.SamplerNode;1203;-44.95447,-376.7867;Float;True;Property;_Emission;Emission;5;0;Create;True;0;0;False;0;None;None;True;0;False;white;Auto;False;Object;-1;Auto;Texture2D;6;0;SAMPLER2D;;False;1;FLOAT2;0,0;False;2;FLOAT;0;False;3;FLOAT2;0,0;False;4;FLOAT2;0,0;False;5;FLOAT;1;False;5;COLOR;0;FLOAT;1;FLOAT;2;FLOAT;3;FLOAT;4
Node;AmplifyShaderEditor.RangedFloatNode;1198;-268.4385,198.9634;Float;False;Property;_VertexAO;Vertex AO;2;0;Create;True;0;0;False;0;0;0;0;1;0;1;FLOAT;0
Node;AmplifyShaderEditor.SimpleMultiplyOpNode;1200;-151.8854,-82.27648;Float;False;2;2;0;FLOAT;0;False;1;COLOR;0,0,0,0;False;1;COLOR;0
Node;AmplifyShaderEditor.SimpleMultiplyOpNode;1204;374.0455,-359.7867;Float;False;2;2;0;COLOR;0,0,0,0;False;1;FLOAT;0;False;1;COLOR;0
Node;AmplifyShaderEditor.LerpOp;1199;89.48215,11.49439;Float;False;3;0;COLOR;0,0,0,0;False;1;COLOR;0,0,0,0;False;2;FLOAT;0;False;1;COLOR;0
Node;AmplifyShaderEditor.SimpleAddOpNode;1206;560.9778,9.340698;Float;False;2;2;0;COLOR;0,0,0,0;False;1;COLOR;0,0,0,0;False;1;COLOR;0
Node;AmplifyShaderEditor.StandardSurfaceOutputNode;26;827.092,-31.27194;Float;False;True;2;Float;ASEMaterialInspector;0;0;Unlit;Custom/Interior/Emissive;False;False;False;False;True;True;True;True;True;True;True;True;False;False;True;True;False;False;False;False;Back;0;False;-1;0;False;-1;False;0;False;-1;0;False;-1;False;0;Opaque;0;True;False;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;0;4;10;25;False;0.5;False;0;5;False;-1;10;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;1;PreviewType=Skybox;False;0;0;False;-1;-1;0;False;-1;0;0;0;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;1194;0;1192;0
WireConnection;1194;1;1193;0
WireConnection;1196;0;1194;0
WireConnection;1196;1;1202;0
WireConnection;1197;0;1194;0
WireConnection;1197;1;1196;0
WireConnection;1197;2;1201;0
WireConnection;1200;0;1195;3
WireConnection;1200;1;1197;0
WireConnection;1204;0;1203;0
WireConnection;1204;1;1205;0
WireConnection;1199;0;1197;0
WireConnection;1199;1;1200;0
WireConnection;1199;2;1198;0
WireConnection;1206;0;1204;0
WireConnection;1206;1;1199;0
WireConnection;26;2;1206;0
ASEEND*/
//CHKSM=0AF72A23946FE4420EA7C0B27AA272FE34B66425