// CRC32: 8AE078E1 | Matched 4 variants of 1 shaders: Standard
//
//       Unity headers extracted from 0x001ab1a8.shader
//       Shader "Standard" {
//         Properties {
//          _Color ("Color", Color) = (1,1,1,1)
//          _MainTex ("Albedo", 2D) = "white" { }
//          _Cutoff ("Alpha Cutoff", Range(0,1)) = 0.5
//          _Glossiness ("Smoothness", Range(0,1)) = 0.5
//         [Gamma]  _Metallic ("Metallic", Range(0,1)) = 0
//          _MetallicGlossMap ("Metallic", 2D) = "white" { }
//          _BumpScale ("Scale", Float) = 1
//          _BumpMap ("Normal Map", 2D) = "bump" { }
//          _Parallax ("Height Scale", Range(0.005,0.08)) = 0.02
//          _ParallaxMap ("Height Map", 2D) = "black" { }
//          _OcclusionStrength ("Strength", Range(0,1)) = 1
//          _OcclusionMap ("Occlusion", 2D) = "white" { }
//          _EmissionColor ("Color", Color) = (0,0,0,1)
//          _EmissionMap ("Emission", 2D) = "white" { }
//          _DetailMask ("Detail Mask", 2D) = "white" { }
//          _DetailAlbedoMap ("Detail Albedo x2", 2D) = "grey" { }
//          _DetailNormalMapScale ("Scale", Float) = 1
//          _DetailNormalMap ("Normal Map", 2D) = "bump" { }
//         [Enum(UV0,0,UV1,1)]  _UVSec ("UV Set for secondary textures", Float) = 0
//         [HideInInspector]  _Mode ("__mode", Float) = 0
//         [HideInInspector]  _SrcBlend ("__src", Float) = 1
//         [HideInInspector]  _DstBlend ("__dst", Float) = 0
//         [HideInInspector]  _ZWrite ("__zw", Float) = 1
//         }
//         Fallback "VertexLit"
//         SubShader 1/2 {
//           LOD 300
//           Tags { "RenderType"="Opaque" "PerformanceChecks"="False" }
//           Pass 4/4 {
//             Name "DEFERRED"
//             Tags { "LIGHTMODE"="Deferred" "RenderType"="Opaque" "PerformanceChecks"="False" }
//             GpuProgramID 219902
//             Program "vp" {
//               SubProgram "d3d9 " {
// 1:              GpuProgramIndex 80
// 2:              GpuProgramIndex 81
// 4:              GpuProgramIndex 92
// 8:              GpuProgramIndex 93
//               }
//             }
//           }
//         }
//       }
//
//    Unity 5.3 headers extracted from 0x001ab1a8.shader.decompressed:
//      API d3d9
//      Shader model vs_3_0
//      undeciphered1: 201509030 34 -1 -1
// 4:   Keywords { "LIGHTMAP_OFF" "DIRLIGHTMAP_OFF" "DYNAMICLIGHTMAP_OFF" "UNITY_HDR_ON" }
// 8:   Keywords { "LIGHTMAP_OFF" "DIRLIGHTMAP_OFF" "DYNAMICLIGHTMAP_OFF" "_EMISSION" "UNITY_HDR_ON" }
// 2:   Keywords { "LIGHTMAP_OFF" "DIRLIGHTMAP_OFF" "DYNAMICLIGHTMAP_OFF" "_EMISSION" }
// 1:   Keywords { "LIGHTMAP_OFF" "DIRLIGHTMAP_OFF" "DYNAMICLIGHTMAP_OFF" }
//      undeciphered3: 27 4 0 0 1 2 3 4 4 5 1
//      Vector 16 [_DetailAlbedoMap_ST]
//      Vector 15 [_MainTex_ST]
//      Float 17 [_UVSec]
//      Vector 10 [_WorldSpaceCameraPos]
//      Vector 13 [unity_SHBb]
//      Vector 12 [unity_SHBg]
//      Vector 11 [unity_SHBr]
//      Vector 14 [unity_SHC]
//      Matrix 4 [_Object2World] 3
//      Matrix 7 [_World2Object] 3
//      Matrix 0 [glstate_matrix_mvp]
//
// Headers extracted with DarkStarSword's extract_unity53_shaders.py
// https://raw.githubusercontent.com/DarkStarSword/3d-fixes/master/extract_unity53_shaders.py

//
// Generated by Microsoft (R) HLSL Shader Compiler 6.3.9600.16384
//   using 3Dmigoto command line v1.2.38 on Mon Aug 13 12:42:02 2018
//
//
// Parameters:
//
//   float4 _DetailAlbedoMap_ST;
//   float4 _MainTex_ST;
//   row_major float4x4 _Object2World;
//   float _UVSec;
//   row_major float4x4 _World2Object;
//   float3 _WorldSpaceCameraPos;
//   row_major float4x4 glstate_matrix_mvp;
//   float4 unity_SHBb;
//   float4 unity_SHBg;
//   float4 unity_SHBr;
//   float4 unity_SHC;
//
//
// Registers:
//
//   Name                 Reg   Size
//   -------------------- ----- ----
//   glstate_matrix_mvp   c0       4
//   _Object2World        c4       3
//   _World2Object        c7       3
//   _WorldSpaceCameraPos c10      1
//   unity_SHBr           c11      1
//   unity_SHBg           c12      1
//   unity_SHBb           c13      1
//   unity_SHC            c14      1
//   _MainTex_ST          c15      1
//   _DetailAlbedoMap_ST  c16      1
//   _UVSec               c17      1
//

    vs_3_0
    def c18, 0, 0, 0, 0
    dcl_position v0
    dcl_normal v1
    dcl_texcoord v2
    dcl_texcoord1 v3
    dcl_position o0
    dcl_texcoord o1
    dcl_texcoord1 o2.xyz
    dcl_texcoord2 o3
    dcl_texcoord3 o4
    dcl_texcoord4 o5
    dcl_texcoord5 o6
    dcl_texcoord6 o7.xyz

def c220, 0, 1, 0.0625, 0.5
dcl_2d s3

texldl r31, c220.z, s3

// Unity reflection/specular fix inserted with DarkStarSword's shadertool.py:
// shadertool.py -i --fix-unity-reflection --auto-fix-vertex-halo --add-fog-on-sm3-update --only-autofixed --ignore-parse-errors --ignore-register-errors --ignore-other-errors dumps\allshaders\vertexshader\8AE078E1.txt
mov r30, c10
mov r29, c220.x
mul r29.x, r31.x, -r31.y
dp4 r28.x, c180, r29
dp4 r28.y, c181, r29
dp4 r28.z, c182, r29
dp4 r28.w, c183, r29
dp4 r29.x, c190, r28
dp4 r29.y, c191, r28
dp4 r29.z, c192, r28
add r30.xyz, r30, -r29

    dp4 o0.x, c0, v0
    dp4 o0.y, c1, v0
    dp4 o0.z, c2, v0
    dp4 o0.w, c3, v0
    mad o1.xy, v2, c15, c15.zwzw
    abs r0.x, c17.x
    sge r0.x, -r0.x, r0.x
    mov r1.xy, v2
    lrp r2.xy, r0.x, r1, v3
    mad o1.zw, r2.xyxy, c16.xyxy, c16
    dp4 r0.x, c4, v0
    dp4 r0.y, c5, v0
    dp4 r0.z, c6, v0
    add o2.xyz, r0, -r30
    mov o7.xyz, r0
    mul r0.xyz, c8, v1.y
    mad r0.xyz, c7, v1.x, r0
    mad r0.xyz, c9, v1.z, r0
    nrm r1.xyz, r0
    mul r0.x, r1.y, r1.y
    mad r0.x, r1.x, r1.x, -r0.x
    mul r2, r1.yzzx, r1.xyzz
    mov o5.xyz, r1
    dp4 r1.x, c11, r2
    dp4 r1.y, c12, r2
    dp4 r1.z, c13, r2
    mad o6.xyz, c14, r0.x, r1
    mov o3, c18.x
    mov o4, c18.x
    mov o5.w, c18.x
    mov o6.w, c18.x

// approximately 33 instruction slots used
