blob: db89c9777f571a57c7004640333a19cd9b865b7a [file] [log] [blame]
// Module Version 10000
// Generated by (magic number): 80001
// Id's are bound by 149
Capability Shader
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main" 13 112 117 123 129
ExecutionMode 4 OriginLowerLeft
6: String "0"
Source ESSL 300
SourceExtension "GL_EXT_shadow_samplers"
Name 4 "main"
Name 10 "tmpvar_5"
Name 13 "xlv_TEXCOORD4"
Name 20 "unity_ShadowSplitSpheres"
Name 28 "tmpvar_6"
Name 36 "tmpvar_7"
Name 44 "tmpvar_8"
Name 53 "tmpvar_9"
Name 78 "tmpvar_10"
Name 80 "unity_ShadowSplitSqRadii"
Name 83 "tmpvar_11"
Name 90 "cascadeWeights_4"
Name 102 "tmpvar_12"
Name 105 "unity_ShadowFadeCenterAndType"
Name 109 "tmpvar_13"
Name 112 "xlv_TEXCOORD0"
Name 117 "xlv_TEXCOORD1"
Name 123 "xlv_TEXCOORD2"
Name 129 "xlv_TEXCOORD3"
Name 137 "tmpvar_14"
Name 141 "_ShadowMapTexture"
Name 147 "_ProjectionParams"
Name 148 "_LightShadowData"
Decorate 83(tmpvar_11) RelaxedPrecision
Decorate 89 RelaxedPrecision
Decorate 91 RelaxedPrecision
Decorate 137(tmpvar_14) RelaxedPrecision
Decorate 141(_ShadowMapTexture) RelaxedPrecision
Decorate 141(_ShadowMapTexture) DescriptorSet 0
Decorate 142 RelaxedPrecision
2: TypeVoid
3: TypeFunction 2
7: TypeFloat 32
8: TypeVector 7(float) 3
9: TypePointer Function 8(fvec3)
11: TypeVector 7(float) 4
12: TypePointer Input 11(fvec4)
13(xlv_TEXCOORD4): 12(ptr) Variable Input
16: TypeInt 32 0
17: 16(int) Constant 4
18: TypeArray 11(fvec4) 17
19: TypePointer UniformConstant 18
20(unity_ShadowSplitSpheres): 19(ptr) Variable UniformConstant
21: TypeInt 32 1
22: 21(int) Constant 0
23: TypePointer UniformConstant 11(fvec4)
31: 21(int) Constant 1
39: 21(int) Constant 2
47: 21(int) Constant 3
52: TypePointer Function 11(fvec4)
57: 16(int) Constant 0
58: TypePointer Function 7(float)
63: 16(int) Constant 1
68: 16(int) Constant 2
73: 16(int) Constant 3
75: TypeBool
76: TypeVector 75(bool) 4
77: TypePointer Function 76(bvec4)
80(unity_ShadowSplitSqRadii): 23(ptr) Variable UniformConstant
85: 7(float) Constant 0
86: 7(float) Constant 1065353216
87: 11(fvec4) ConstantComposite 85 85 85 85
88: 11(fvec4) ConstantComposite 86 86 86 86
105(unity_ShadowFadeCenterAndType): 23(ptr) Variable UniformConstant
111: TypePointer Input 8(fvec3)
112(xlv_TEXCOORD0): 111(ptr) Variable Input
117(xlv_TEXCOORD1): 111(ptr) Variable Input
123(xlv_TEXCOORD2): 111(ptr) Variable Input
129(xlv_TEXCOORD3): 111(ptr) Variable Input
138: TypeImage 7(float) 2D depth sampled format:Unknown
139: TypeSampledImage 138
140: TypePointer UniformConstant 139
141(_ShadowMapTexture): 140(ptr) Variable UniformConstant
147(_ProjectionParams): 23(ptr) Variable UniformConstant
148(_LightShadowData): 23(ptr) Variable UniformConstant
4(main): 2 Function None 3
5: Label
10(tmpvar_5): 9(ptr) Variable Function
28(tmpvar_6): 9(ptr) Variable Function
36(tmpvar_7): 9(ptr) Variable Function
44(tmpvar_8): 9(ptr) Variable Function
53(tmpvar_9): 52(ptr) Variable Function
78(tmpvar_10): 77(ptr) Variable Function
83(tmpvar_11): 52(ptr) Variable Function
90(cascadeWeights_4): 52(ptr) Variable Function
102(tmpvar_12): 9(ptr) Variable Function
109(tmpvar_13): 52(ptr) Variable Function
137(tmpvar_14): 58(ptr) Variable Function
Line 6 26 3
14: 11(fvec4) Load 13(xlv_TEXCOORD4)
15: 8(fvec3) VectorShuffle 14 14 0 1 2
24: 23(ptr) AccessChain 20(unity_ShadowSplitSpheres) 22
25: 11(fvec4) Load 24
26: 8(fvec3) VectorShuffle 25 25 0 1 2
27: 8(fvec3) FSub 15 26
Store 10(tmpvar_5) 27
Line 6 28 3
29: 11(fvec4) Load 13(xlv_TEXCOORD4)
30: 8(fvec3) VectorShuffle 29 29 0 1 2
32: 23(ptr) AccessChain 20(unity_ShadowSplitSpheres) 31
33: 11(fvec4) Load 32
34: 8(fvec3) VectorShuffle 33 33 0 1 2
35: 8(fvec3) FSub 30 34
Store 28(tmpvar_6) 35
Line 6 30 3
37: 11(fvec4) Load 13(xlv_TEXCOORD4)
38: 8(fvec3) VectorShuffle 37 37 0 1 2
40: 23(ptr) AccessChain 20(unity_ShadowSplitSpheres) 39
41: 11(fvec4) Load 40
42: 8(fvec3) VectorShuffle 41 41 0 1 2
43: 8(fvec3) FSub 38 42
Store 36(tmpvar_7) 43
Line 6 32 3
45: 11(fvec4) Load 13(xlv_TEXCOORD4)
46: 8(fvec3) VectorShuffle 45 45 0 1 2
48: 23(ptr) AccessChain 20(unity_ShadowSplitSpheres) 47
49: 11(fvec4) Load 48
50: 8(fvec3) VectorShuffle 49 49 0 1 2
51: 8(fvec3) FSub 46 50
Store 44(tmpvar_8) 51
Line 6 34 3
54: 8(fvec3) Load 10(tmpvar_5)
55: 8(fvec3) Load 10(tmpvar_5)
56: 7(float) Dot 54 55
59: 58(ptr) AccessChain 53(tmpvar_9) 57
Store 59 56
Line 6 35 3
60: 8(fvec3) Load 28(tmpvar_6)
61: 8(fvec3) Load 28(tmpvar_6)
62: 7(float) Dot 60 61
64: 58(ptr) AccessChain 53(tmpvar_9) 63
Store 64 62
Line 6 36 3
65: 8(fvec3) Load 36(tmpvar_7)
66: 8(fvec3) Load 36(tmpvar_7)
67: 7(float) Dot 65 66
69: 58(ptr) AccessChain 53(tmpvar_9) 68
Store 69 67
Line 6 37 3
70: 8(fvec3) Load 44(tmpvar_8)
71: 8(fvec3) Load 44(tmpvar_8)
72: 7(float) Dot 70 71
74: 58(ptr) AccessChain 53(tmpvar_9) 73
Store 74 72
Line 6 39 3
79: 11(fvec4) Load 53(tmpvar_9)
81: 11(fvec4) Load 80(unity_ShadowSplitSqRadii)
82: 76(bvec4) FOrdLessThan 79 81
Store 78(tmpvar_10) 82
Line 6 41 3
84: 76(bvec4) Load 78(tmpvar_10)
89: 11(fvec4) Select 84 88 87
Store 83(tmpvar_11) 89
Line 6 42 3
91: 11(fvec4) Load 83(tmpvar_11)
Store 90(cascadeWeights_4) 91
Line 6 43 3
92: 11(fvec4) Load 90(cascadeWeights_4)
93: 8(fvec3) VectorShuffle 92 92 1 2 3
94: 11(fvec4) Load 90(cascadeWeights_4)
95: 8(fvec3) VectorShuffle 94 94 0 1 2
96: 8(fvec3) FSub 93 95
97: 8(fvec3) CompositeConstruct 85 85 85
98: 8(fvec3) CompositeConstruct 86 86 86
99: 8(fvec3) ExtInst 1(GLSL.std.450) 43(FClamp) 96 97 98
100: 11(fvec4) Load 90(cascadeWeights_4)
101: 11(fvec4) VectorShuffle 100 99 0 4 5 6
Store 90(cascadeWeights_4) 101
Line 6 45 3
103: 11(fvec4) Load 13(xlv_TEXCOORD4)
104: 8(fvec3) VectorShuffle 103 103 0 1 2
106: 11(fvec4) Load 105(unity_ShadowFadeCenterAndType)
107: 8(fvec3) VectorShuffle 106 106 0 1 2
108: 8(fvec3) FSub 104 107
Store 102(tmpvar_12) 108
Line 6 47 3
110: 58(ptr) AccessChain 109(tmpvar_13) 73
Store 110 86
Line 6 48 3
113: 8(fvec3) Load 112(xlv_TEXCOORD0)
114: 58(ptr) AccessChain 90(cascadeWeights_4) 57
115: 7(float) Load 114
116: 8(fvec3) VectorTimesScalar 113 115
118: 8(fvec3) Load 117(xlv_TEXCOORD1)
119: 58(ptr) AccessChain 90(cascadeWeights_4) 63
120: 7(float) Load 119
121: 8(fvec3) VectorTimesScalar 118 120
122: 8(fvec3) FAdd 116 121
124: 8(fvec3) Load 123(xlv_TEXCOORD2)
125: 58(ptr) AccessChain 90(cascadeWeights_4) 68
126: 7(float) Load 125
127: 8(fvec3) VectorTimesScalar 124 126
128: 8(fvec3) FAdd 122 127
130: 8(fvec3) Load 129(xlv_TEXCOORD3)
131: 58(ptr) AccessChain 90(cascadeWeights_4) 73
132: 7(float) Load 131
133: 8(fvec3) VectorTimesScalar 130 132
134: 8(fvec3) FAdd 128 133
135: 11(fvec4) Load 109(tmpvar_13)
136: 11(fvec4) VectorShuffle 135 134 4 5 6 3
Store 109(tmpvar_13) 136
Line 6 54 3
142: 139 Load 141(_ShadowMapTexture)
143: 11(fvec4) Load 109(tmpvar_13)
144: 8(fvec3) VectorShuffle 143 143 0 1 2
145: 7(float) CompositeExtract 144 2
146: 7(float) ImageSampleDrefImplicitLod 142 144 145
Store 137(tmpvar_14) 146
Return
FunctionEnd