123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- Pass
- {
- $splice(PassName)
- Tags
- {
- $splice(LightMode)
- }
-
- // Render State
- $splice(Blending)
- $splice(Culling)
- $splice(ZTest)
- $splice(ZWrite)
- $splice(ColorMask)
- $splice(Stencil)
- HLSLPROGRAM
- #pragma vertex vert
- #pragma fragment frag
- // Debug
- $splice(Debug)
- // --------------------------------------------------
- // Pass
- // Pragmas
- $splice(PassPragmas)
- // Keywords
- $splice(PassKeywords)
- $splice(GraphKeywords)
-
- // Defines
- $SurfaceType.Transparent: #define _SURFACE_TYPE_TRANSPARENT 1
- $AlphaClip: #define _AlphaClip 1
- $Normal: #define _NORMALMAP 1
- $SpecularSetup: #define _SPECULAR_SETUP
- $BlendMode.Add: #define _BLENDMODE_ADD 1
- $BlendMode.Premultiply: #define _ALPHAPREMULTIPLY_ON 1
- $features.NormalDropOffTS: #define _NORMAL_DROPOFF_TS 1
- $features.NormalDropOffOS: #define _NORMAL_DROPOFF_OS 1
- $features.NormalDropOffWS: #define _NORMAL_DROPOFF_WS 1
- $Attributes.normalOS: #define ATTRIBUTES_NEED_NORMAL
- $Attributes.tangentOS: #define ATTRIBUTES_NEED_TANGENT
- $Attributes.uv0: #define ATTRIBUTES_NEED_TEXCOORD0
- $Attributes.uv1: #define ATTRIBUTES_NEED_TEXCOORD1
- $Attributes.uv2: #define ATTRIBUTES_NEED_TEXCOORD2
- $Attributes.uv3: #define ATTRIBUTES_NEED_TEXCOORD3
- $Attributes.color: #define ATTRIBUTES_NEED_COLOR
- $Varyings.positionWS: #define VARYINGS_NEED_POSITION_WS
- $Varyings.normalWS: #define VARYINGS_NEED_NORMAL_WS
- $Varyings.tangentWS: #define VARYINGS_NEED_TANGENT_WS
- $Varyings.texCoord0: #define VARYINGS_NEED_TEXCOORD0
- $Varyings.texCoord1: #define VARYINGS_NEED_TEXCOORD1
- $Varyings.texCoord2: #define VARYINGS_NEED_TEXCOORD2
- $Varyings.texCoord3: #define VARYINGS_NEED_TEXCOORD3
- $Varyings.color: #define VARYINGS_NEED_COLOR
- $Varyings.viewDirectionWS: #define VARYINGS_NEED_VIEWDIRECTION_WS
- $Varyings.bitangentWS: #define VARYINGS_NEED_BITANGENT_WS
- $Varyings.screenPosition: #define VARYINGS_NEED_SCREENPOSITION
- $Varyings.fogFactorAndVertexLight: #define VARYINGS_NEED_FOG_AND_VERTEX_LIGHT
- $Varyings.cullFace: #define VARYINGS_NEED_CULLFACE
- $features.graphVertex: #define FEATURES_GRAPH_VERTEX
- $splice(GraphDefines)
- // Includes
- $splice(PassIncludes)
- // --------------------------------------------------
- // Graph
- // Graph Properties
- $splice(GraphProperties)
- // Graph Functions
- $splice(GraphFunctions)
- // Graph Vertex
- $splice(GraphVertex)
-
- // Graph Pixel
- $splice(GraphPixel)
- // --------------------------------------------------
- // Structs and Packing
- $buildType(Attributes)
- $buildType(Varyings)
- // --------------------------------------------------
- // Build Graph Inputs
- $features.graphVertex: $include("BuildVertexDescriptionInputs.template.hlsl")
- $features.graphPixel: $include("BuildSurfaceDescriptionInputs.template.hlsl")
- // --------------------------------------------------
- // Main
- $splice(MainInclude)
- ENDHLSL
- }
|