yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
e4c40890
main
1spv.debuginfo.glsl.frag 2// Module Version 10000 3// Generated by (magic number): 8000b 4// Id's are bound by 913 5 6 Capability Shader 7 Capability ImageQuery 8 Extension "SPV_KHR_non_semantic_info" 9 1: ExtInstImport "NonSemantic.Shader.DebugInfo.100" 10 3: ExtInstImport "GLSL.std.450" 11 MemoryModel Logical GLSL450 12 EntryPoint Fragment 14 "main" 138 143 13 ExecutionMode 14 OriginUpperLeft 14 2: String "spv.debuginfo.glsl.frag" 15 8: String "uint" 16 17: String "float" 17 39: String "textureProj" 18 42: String "/* 19The MIT License (MIT) 20 21Copyright (c) 2022 Sascha Willems 22 23Permission is hereby granted, free of charge, to any person obtaining a copy 24of this software and associated documentation files (the "Software"), to deal 25in the Software without restriction, including without limitation the rights 26to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 27copies of the Software, and to permit persons to whom the Software is 28furnished to do so, subject to the following conditions: 29 30The above copyright notice and this permission notice shall be included in all 31copies or substantial portions of the Software. 32 33THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 34IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 35FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 36AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 37LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 38OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 39SOFTWARE. 40*/ 41 42#version 450 43 44layout (binding = 1) uniform sampler2D samplerposition; 45layout (binding = 2) uniform sampler2D samplerNormal; 46layout (binding = 3) uniform sampler2D samplerAlbedo; 47layout (binding = 5) uniform sampler2DArray samplerShadowMap; 48 49layout (location = 0) in vec2 inUV; 50 51layout (location = 0) out vec4 outFragColor; 52 53#define LIGHT_COUNT 3 54#define SHADOW_FACTOR 0.25 55#define AMBIENT_LIGHT 0.1 56#define USE_PCF 57 58int global_var = 0; 59 60struct Light 61{ 62 vec4 position; 63 vec4 target; 64 vec4 color; 65 mat4 viewMatrix; 66}; 67 68layout (binding = 4) uniform UBO 69{ 70 vec4 viewPos; 71 Light lights[LIGHT_COUNT]; 72 int useShadows; 73 int debugDisplayTarget; 74} ubo; 75 76float textureProj(vec4 P, float layer, vec2 offset) 77{ 78 float shadow = 1.0; 79 vec4 shadowCoord = P / P.w; 80 shadowCoord.st = shadowCoord.st * 0.5 + 0.5; 81 82 if (shadowCoord.z > -1.0 && shadowCoord.z < 1.0) 83 { 84 float dist = texture(samplerShadowMap, vec3(shadowCoord.st + offset, layer)).r; 85 if (shadowCoord.w > 0.0 && dist < shadowCoord.z) 86 { 87 shadow = SHADOW_FACTOR; 88 } 89 } 90 return shadow; 91} 92 93float filterPCF(vec4 sc, float layer) 94{ 95 ivec2 texDim = textureSize(samplerShadowMap, 0).xy; 96 float scale = 1.5; 97 float dx = scale * 1.0 / float(texDim.x); 98 float dy = scale * 1.0 / float(texDim.y); 99 100 float shadowFactor = 0.0; 101 int count = 0; 102 int range = 1; 103 104 for (int x = -range; x <= range; x++) 105 { 106 for (int y = -range; y <= range; y++) 107 { 108 shadowFactor += textureProj(sc, layer, vec2(dx*x, dy*y)); 109 count++; 110 } 111 112 } 113 return shadowFactor / count; 114} 115 116vec3 shadow(vec3 fragcolor, vec3 fragpos) { 117 for(int i = 0; i < LIGHT_COUNT; ++i) 118 { 119 vec4 shadowClip = ubo.lights[i].viewMatrix * vec4(fragpos, 1.0); 120 121 float shadowFactor; 122 #ifdef USE_PCF 123 shadowFactor= filterPCF(shadowClip, i); 124 #else 125 shadowFactor = textureProj(shadowClip, i, vec2(0.0)); 126 #endif 127 128 fragcolor *= shadowFactor; 129 } 130 return fragcolor; 131} 132 133void main() 134{ 135 // Get G-Buffer values 136 vec3 fragPos = texture(samplerposition, inUV).rgb; 137 vec3 normal = texture(samplerNormal, inUV).rgb; 138 vec4 albedo = texture(samplerAlbedo, inUV); 139 140 // Debug display 141 if (ubo.debugDisplayTarget > 0) { 142 switch (ubo.debugDisplayTarget) { 143 case 1: 144 outFragColor.rgb = shadow(vec3(1.0), fragPos).rgb; 145 break; 146 case 2: 147 outFragColor.rgb = fragPos; 148 break; 149 case 3: 150 outFragColor.rgb = normal; 151 break; 152 case 4: 153 outFragColor.rgb = albedo.rgb; 154 break; 155 case 5: 156 outFragColor.rgb = albedo.aaa; 157 break; 158 } 159 outFragColor.a = 1.0; 160 return; 161 } 162 163 // Ambient part 164 vec3 fragcolor = albedo.rgb * AMBIENT_LIGHT; 165 166 vec3 N = normalize(normal); 167 168 for(int i = 0; i < LIGHT_COUNT; ++i) 169 { 170 // Vector to light 171 vec3 L = ubo.lights[i].position.xyz - fragPos; 172 // Distance from light to fragment position 173 float dist = length(L); 174 L = normalize(L); 175 176 // Viewer to fragment 177 vec3 V = ubo.viewPos.xyz - fragPos; 178 V = normalize(V); 179 180 float lightCosInnerAngle = cos(radians(15.0)); 181 float lightCosOuterAngle = cos(radians(25.0)); 182 float lightRange = 100.0; 183 184 // Direction vector from source to target 185 vec3 dir = normalize(ubo.lights[i].position.xyz - ubo.lights[i].target.xyz); 186 187 // Dual cone spot light with smooth transition between inner and outer angle 188 float cosDir = dot(L, dir); 189 float spotEffect = smoothstep(lightCosOuterAngle, lightCosInnerAngle, cosDir); 190 float heightAttenuation = smoothstep(lightRange, 0.0f, dist); 191 192 // Diffuse lighting 193 float NdotL = max(0.0, dot(N, L)); 194 vec3 diff = vec3(NdotL); 195 196 // Specular lighting 197 vec3 R = reflect(-L, N); 198 float NdotR = max(0.0, dot(R, V)); 199 vec3 spec = vec3(pow(NdotR, 16.0) * albedo.a * 2.5); 200 201 fragcolor += vec3((diff + spec) * spotEffect * heightAttenuation) * ubo.lights[i].color.rgb * albedo.rgb; 202 } 203 204 // Shadow calculations in a separate pass 205 if (ubo.useShadows > 0) 206 { 207 fragcolor = shadow(fragcolor, fragPos); 208 } 209 210 outFragColor = vec4(fragcolor, 1.0); 211} 212" 213 47: String "P" 214 53: String "layer" 215 56: String "offset" 216 64: String "filterPCF" 217 68: String "sc" 218 84: String "shadow" 219 88: String "fragcolor" 220 93: String "fragpos" 221 95: String "main" 222 100: String "texture2D" 223 102: String "@texture2D" 224 106: String "sampler2D" 225 107: String "@sampler2D" 226 112: String "samplerposition" 227 116: String "samplerNormal" 228 120: String "samplerAlbedo" 229 124: String "texture2DArray" 230 126: String "@texture2DArray" 231 129: String "sampler2DArray" 232 130: String "@sampler2DArray" 233 135: String "samplerShadowMap" 234 140: String "inUV" 235 145: String "outFragColor" 236 148: String "int" 237 154: String "global_var" 238 162: String "bool" 239 167: String "position" 240 170: String "target" 241 173: String "color" 242 176: String "viewMatrix" 243 179: String "Light" 244 185: String "viewPos" 245 188: String "lights" 246 191: String "useShadows" 247 194: String "debugDisplayTarget" 248 197: String "UBO" 249 202: String "ubo" 250 212: String "shadowCoord" 251 256: String "dist" 252 312: String "texDim" 253 324: String "scale" 254 331: String "dx" 255 345: String "dy" 256 357: String "shadowFactor" 257 363: String "count" 258 369: String "range" 259 378: String "x" 260 400: String "y" 261 467: String "i" 262 485: String "shadowClip" 263 537: String "fragPos" 264 547: String "normal" 265 557: String "albedo" 266 678: String "N" 267 704: String "L" 268 730: String "V" 269 745: String "lightCosInnerAngle" 270 752: String "lightCosOuterAngle" 271 759: String "lightRange" 272 766: String "dir" 273 782: String "cosDir" 274 791: String "spotEffect" 275 801: String "heightAttenuation" 276 810: String "NdotL" 277 820: String "diff" 278 828: String "R" 279 838: String "NdotR" 280 848: String "spec" 281 Name 14 "main" 282 Name 37 "textureProj(vf4;f1;vf2;" 283 Name 34 "P" 284 Name 35 "layer" 285 Name 36 "offset" 286 Name 62 "filterPCF(vf4;f1;" 287 Name 60 "sc" 288 Name 61 "layer" 289 Name 82 "shadow(vf3;vf3;" 290 Name 80 "fragcolor" 291 Name 81 "fragpos" 292 Name 110 "samplerposition" 293 Name 114 "samplerNormal" 294 Name 118 "samplerAlbedo" 295 Name 133 "samplerShadowMap" 296 Name 138 "inUV" 297 Name 143 "outFragColor" 298 Name 152 "global_var" 299 Name 165 "Light" 300 MemberName 165(Light) 0 "position" 301 MemberName 165(Light) 1 "target" 302 MemberName 165(Light) 2 "color" 303 MemberName 165(Light) 3 "viewMatrix" 304 Name 183 "UBO" 305 MemberName 183(UBO) 0 "viewPos" 306 MemberName 183(UBO) 1 "lights" 307 MemberName 183(UBO) 2 "useShadows" 308 MemberName 183(UBO) 3 "debugDisplayTarget" 309 Name 200 "ubo" 310 Name 204 "shadow" 311 Name 210 "shadowCoord" 312 Name 254 "dist" 313 Name 310 "texDim" 314 Name 322 "scale" 315 Name 329 "dx" 316 Name 343 "dy" 317 Name 355 "shadowFactor" 318 Name 361 "count" 319 Name 367 "range" 320 Name 376 "x" 321 Name 398 "y" 322 Name 430 "param" 323 Name 432 "param" 324 Name 434 "param" 325 Name 465 "i" 326 Name 483 "shadowClip" 327 Name 501 "shadowFactor" 328 Name 510 "param" 329 Name 512 "param" 330 Name 535 "fragPos" 331 Name 545 "normal" 332 Name 555 "albedo" 333 Name 586 "param" 334 Name 590 "param" 335 Name 666 "fragcolor" 336 Name 676 "N" 337 Name 686 "i" 338 Name 702 "L" 339 Name 717 "dist" 340 Name 728 "V" 341 Name 743 "lightCosInnerAngle" 342 Name 750 "lightCosOuterAngle" 343 Name 757 "lightRange" 344 Name 764 "dir" 345 Name 780 "cosDir" 346 Name 789 "spotEffect" 347 Name 799 "heightAttenuation" 348 Name 808 "NdotL" 349 Name 818 "diff" 350 Name 826 "R" 351 Name 836 "NdotR" 352 Name 846 "spec" 353 Name 896 "param" 354 Name 900 "param" 355 Decorate 110(samplerposition) Binding 1 356 Decorate 110(samplerposition) DescriptorSet 0 357 Decorate 114(samplerNormal) Binding 2 358 Decorate 114(samplerNormal) DescriptorSet 0 359 Decorate 118(samplerAlbedo) Binding 3 360 Decorate 118(samplerAlbedo) DescriptorSet 0 361 Decorate 133(samplerShadowMap) Binding 5 362 Decorate 133(samplerShadowMap) DescriptorSet 0 363 Decorate 138(inUV) Location 0 364 Decorate 143(outFragColor) Location 0 365 MemberDecorate 165(Light) 0 Offset 0 366 MemberDecorate 165(Light) 1 Offset 16 367 MemberDecorate 165(Light) 2 Offset 32 368 MemberDecorate 165(Light) 3 ColMajor 369 MemberDecorate 165(Light) 3 MatrixStride 16 370 MemberDecorate 165(Light) 3 Offset 48 371 Decorate 181 ArrayStride 112 372 Decorate 183(UBO) Block 373 MemberDecorate 183(UBO) 0 Offset 0 374 MemberDecorate 183(UBO) 1 Offset 16 375 MemberDecorate 183(UBO) 2 Offset 352 376 MemberDecorate 183(UBO) 3 Offset 356 377 Decorate 200(ubo) Binding 4 378 Decorate 200(ubo) DescriptorSet 0 379 4: TypeVoid 380 5: TypeFunction 4 381 7: TypeInt 32 0 382 10: 7(int) Constant 32 383 11: 7(int) Constant 6 384 12: 7(int) Constant 0 385 9: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 8 10 11 12 386 13: 7(int) Constant 3 387 6: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 13 4 388 16: TypeFloat 32 389 18: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 17 10 13 12 390 19: TypeVector 16(float) 4 391 20: 7(int) Constant 4 392 21: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 18 20 393 22: TypePointer Function 19(fvec4) 394 23: 7(int) Constant 7 395 24: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 21 23 12 396 25: TypePointer Function 16(float) 397 26: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 18 23 12 398 27: TypeVector 16(float) 2 399 28: 7(int) Constant 2 400 29: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 18 28 401 30: TypePointer Function 27(fvec2) 402 31: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 29 23 12 403 32: TypeFunction 16(float) 22(ptr) 25(ptr) 30(ptr) 404 33: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 13 18 21 18 29 405 41: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 2 42 406 43: 7(int) Constant 59 407 45: 7(int) Constant 1 408 44: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 45 20 41 28 409 40: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 39 33 41 43 12 44 39 13 43 410 46: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 47 21 41 43 12 40 20 45 411 49: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression) 412 52: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 53 18 41 43 12 40 20 28 413 55: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 56 29 41 43 12 40 20 13 414 58: TypeFunction 16(float) 22(ptr) 25(ptr) 415 59: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 13 18 21 18 416 66: 7(int) Constant 76 417 65: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 64 59 41 66 12 44 64 13 66 418 67: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 68 21 41 66 12 65 20 45 419 72: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 53 18 41 66 12 65 20 28 420 74: TypeVector 16(float) 3 421 75: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 18 13 422 76: TypePointer Function 74(fvec3) 423 77: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 75 23 12 424 78: TypeFunction 74(fvec3) 76(ptr) 76(ptr) 425 79: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 13 75 75 75 426 86: 7(int) Constant 99 427 85: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 84 79 41 86 12 44 84 13 86 428 87: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 88 75 41 86 12 85 20 45 429 92: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 93 75 41 86 12 85 20 28 430 97: 7(int) Constant 116 431 96: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 95 6 41 97 12 44 95 13 97 432 98: TypeImage 16(float) 2D sampled format:Unknown 433 101: 7(int) Constant 27 434 103: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 0(DebugInfoNone) 435 99: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 100 45 41 101 12 44 102 103 13 436 104: TypeSampledImage 98 437 105: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 106 45 41 101 12 44 107 103 13 438 108: TypePointer UniformConstant 104 439 109: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 105 12 12 440110(samplerposition): 108(ptr) Variable UniformConstant 441 113: 7(int) Constant 8 442 111: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 112 105 41 101 12 44 112 110(samplerposition) 113 443114(samplerNormal): 108(ptr) Variable UniformConstant 444 117: 7(int) Constant 28 445 115: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 116 105 41 117 12 44 116 114(samplerNormal) 113 446118(samplerAlbedo): 108(ptr) Variable UniformConstant 447 121: 7(int) Constant 29 448 119: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 120 105 41 121 12 44 120 118(samplerAlbedo) 113 449 122: TypeImage 16(float) 2D array sampled format:Unknown 450 125: 7(int) Constant 30 451 123: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 124 45 41 125 12 44 126 103 13 452 127: TypeSampledImage 122 453 128: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 129 45 41 125 12 44 130 103 13 454 131: TypePointer UniformConstant 127 455 132: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 128 12 12 456133(samplerShadowMap): 131(ptr) Variable UniformConstant 457 134: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 135 128 41 125 12 44 135 133(samplerShadowMap) 113 458 136: TypePointer Input 27(fvec2) 459 137: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 29 45 12 460 138(inUV): 136(ptr) Variable Input 461 139: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 140 29 41 10 12 44 140 138(inUV) 113 462 141: TypePointer Output 19(fvec4) 463 142: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 21 13 12 464143(outFragColor): 141(ptr) Variable Output 465 146: 7(int) Constant 34 466 144: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 145 21 41 146 12 44 145 143(outFragColor) 113 467 147: TypeInt 32 1 468 149: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 148 10 20 12 469 150: TypePointer Private 147(int) 470 151: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 149 11 12 471 152(global_var): 150(ptr) Variable Private 472 155: 7(int) Constant 41 473 153: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 154 149 41 155 12 44 154 152(global_var) 113 474 156: 147(int) Constant 0 475 159: TypeMatrix 19(fvec4) 4 476 161: TypeBool 477 163: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 162 10 28 12 478 164: 161(bool) ConstantTrue 479 160: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 21 20 164 480 165(Light): TypeStruct 19(fvec4) 19(fvec4) 19(fvec4) 159 481 168: 7(int) Constant 45 482 166: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 167 21 41 168 23 12 12 13 483 171: 7(int) Constant 46 484 169: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 170 21 41 171 23 12 12 13 485 174: 7(int) Constant 47 486 172: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 173 21 41 174 23 12 12 13 487 177: 7(int) Constant 48 488 175: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 176 160 41 177 23 12 12 13 489 180: 7(int) Constant 51 490 178: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 179 45 41 180 12 44 179 12 13 166 169 172 175 491 181: TypeArray 165(Light) 13 492 182: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 178 13 493 183(UBO): TypeStruct 19(fvec4) 181 147(int) 147(int) 494 186: 7(int) Constant 53 495 184: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 185 21 41 186 23 12 12 13 496 189: 7(int) Constant 54 497 187: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 188 182 41 189 113 12 12 13 498 192: 7(int) Constant 55 499 190: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 191 149 41 192 11 12 12 13 500 195: 7(int) Constant 56 501 193: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 194 149 41 195 11 12 12 13 502 196: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 197 45 41 180 12 44 197 12 13 184 187 190 193 503 198: TypePointer Uniform 183(UBO) 504 199: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 196 28 12 505 200(ubo): 198(ptr) Variable Uniform 506 201: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 202 196 41 180 12 44 202 200(ubo) 113 507 206: 7(int) Constant 61 508 205: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 84 18 41 206 12 40 20 509 209: 16(float) Constant 1065353216 510 213: 7(int) Constant 62 511 211: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 212 21 41 213 12 40 20 512 223: 7(int) Constant 63 513 225: 16(float) Constant 1056964608 514 235: 7(int) Constant 65 515 237: 16(float) Constant 3212836864 516 252: 7(int) Constant 67 517 253: 7(int) Constant 9 518 251: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 21(DebugLexicalBlock) 41 252 253 40 519 255: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 256 18 41 252 12 251 20 520 273: 7(int) Constant 68 521 275: 16(float) Constant 0 522 291: 7(int) Constant 70 523 292: 7(int) Constant 11 524 290: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 21(DebugLexicalBlock) 41 291 292 251 525 293: 16(float) Constant 1048576000 526 299: 7(int) Constant 73 527 304: 7(int) Constant 74 528 306: TypeVector 147(int) 2 529 307: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 149 28 530 308: TypePointer Function 306(ivec2) 531 309: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 307 23 12 532 313: 7(int) Constant 78 533 311: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 312 307 41 313 12 65 20 534 318: TypeVector 147(int) 3 535 319: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 149 13 536 325: 7(int) Constant 79 537 323: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 324 18 41 325 12 65 20 538 328: 16(float) Constant 1069547520 539 332: 7(int) Constant 80 540 330: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 331 18 41 332 12 65 20 541 337: TypePointer Function 147(int) 542 338: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 149 23 12 543 346: 7(int) Constant 81 544 344: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 345 18 41 346 12 65 20 545 358: 7(int) Constant 83 546 356: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 357 18 41 358 12 65 20 547 364: 7(int) Constant 84 548 362: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 363 149 41 364 12 65 20 549 370: 7(int) Constant 85 550 368: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 369 149 41 370 12 65 20 551 373: 147(int) Constant 1 552 375: 7(int) Constant 87 553 374: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 21(DebugLexicalBlock) 41 375 28 65 554 377: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 378 149 41 375 12 374 20 555 397: 7(int) Constant 89 556 396: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 21(DebugLexicalBlock) 41 397 13 374 557 399: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 400 149 41 397 12 396 20 558 421: 7(int) Constant 91 559 440: 7(int) Constant 92 560 453: 7(int) Constant 96 561 461: 7(int) Constant 97 562 464: 7(int) Constant 100 563 463: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 21(DebugLexicalBlock) 41 464 28 85 564 466: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 467 149 41 464 12 463 20 565 481: 147(int) Constant 3 566 486: 7(int) Constant 102 567 484: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 485 21 41 486 12 463 20 568 491: TypePointer Uniform 159 569 492: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 160 28 12 570 503: 7(int) Constant 104 571 502: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 357 18 41 503 12 463 20 572 508: 7(int) Constant 106 573 516: 7(int) Constant 111 574 526: 7(int) Constant 113 575 531: 7(int) Constant 114 576 538: 7(int) Constant 119 577 536: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 537 75 41 538 12 96 20 578 548: 7(int) Constant 120 579 546: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 547 75 41 548 12 96 20 580 558: 7(int) Constant 121 581 556: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 557 21 41 558 12 96 20 582 564: TypePointer Uniform 147(int) 583 565: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 149 28 12 584 568: 7(int) Constant 124 585 574: 7(int) Constant 125 586 573: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 21(DebugLexicalBlock) 41 574 13 96 587 585: 74(fvec3) ConstantComposite 209 209 209 588 589: 7(int) Constant 127 589 593: TypePointer Output 16(float) 590 594: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 18 13 12 591 602: 7(int) Constant 128 592 607: 7(int) Constant 130 593 615: 7(int) Constant 131 594 620: 7(int) Constant 133 595 628: 7(int) Constant 134 596 633: 7(int) Constant 136 597 642: 7(int) Constant 137 598 647: 7(int) Constant 139 599 656: 7(int) Constant 140 600 662: 7(int) Constant 142 601 664: 7(int) Constant 143 602 668: 7(int) Constant 147 603 667: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 88 75 41 668 12 96 20 604 674: 16(float) Constant 1036831949 605 679: 7(int) Constant 149 606 677: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 678 75 41 679 12 96 20 607 685: 7(int) Constant 151 608 684: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 21(DebugLexicalBlock) 41 685 28 96 609 687: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 467 149 41 685 12 684 20 610 705: 7(int) Constant 154 611 703: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 704 75 41 705 12 684 20 612 710: TypePointer Uniform 19(fvec4) 613 711: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 21 28 12 614 719: 7(int) Constant 156 615 718: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 256 18 41 719 12 684 20 616 726: 7(int) Constant 157 617 731: 7(int) Constant 160 618 729: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 730 75 41 731 12 684 20 619 741: 7(int) Constant 161 620 746: 7(int) Constant 163 621 744: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 745 18 41 746 12 684 20 622 749: 16(float) Constant 1064781546 623 753: 7(int) Constant 164 624 751: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 752 18 41 753 12 684 20 625 756: 16(float) Constant 1063781322 626 760: 7(int) Constant 165 627 758: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 759 18 41 760 12 684 20 628 763: 16(float) Constant 1120403456 629 767: 7(int) Constant 168 630 765: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 766 75 41 767 12 684 20 631 783: 7(int) Constant 171 632 781: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 782 18 41 783 12 684 20 633 792: 7(int) Constant 172 634 790: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 791 18 41 792 12 684 20 635 802: 7(int) Constant 173 636 800: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 801 18 41 802 12 684 20 637 811: 7(int) Constant 176 638 809: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 810 18 41 811 12 684 20 639 821: 7(int) Constant 177 640 819: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 820 75 41 821 12 684 20 641 829: 7(int) Constant 180 642 827: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 828 75 41 829 12 684 20 643 839: 7(int) Constant 181 644 837: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 838 18 41 839 12 684 20 645 849: 7(int) Constant 182 646 847: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 848 75 41 849 12 684 20 647 853: 16(float) Constant 1098907648 648 858: 16(float) Constant 1075838976 649 863: 7(int) Constant 184 650 871: 147(int) Constant 2 651 888: 7(int) Constant 188 652 894: 7(int) Constant 190 653 895: 7(int) Constant 13 654 893: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 21(DebugLexicalBlock) 41 894 895 96 655 906: 7(int) Constant 193 656 912: 7(int) Constant 194 657 14(main): 4 Function None 5 658 15: Label 659 535(fragPos): 76(ptr) Variable Function 660 545(normal): 76(ptr) Variable Function 661 555(albedo): 22(ptr) Variable Function 662 586(param): 76(ptr) Variable Function 663 590(param): 76(ptr) Variable Function 664 666(fragcolor): 76(ptr) Variable Function 665 676(N): 76(ptr) Variable Function 666 686(i): 337(ptr) Variable Function 667 702(L): 76(ptr) Variable Function 668 717(dist): 25(ptr) Variable Function 669 728(V): 76(ptr) Variable Function 670743(lightCosInnerAngle): 25(ptr) Variable Function 671750(lightCosOuterAngle): 25(ptr) Variable Function 672 757(lightRange): 25(ptr) Variable Function 673 764(dir): 76(ptr) Variable Function 674 780(cosDir): 25(ptr) Variable Function 675 789(spotEffect): 25(ptr) Variable Function 676799(heightAttenuation): 25(ptr) Variable Function 677 808(NdotL): 25(ptr) Variable Function 678 818(diff): 76(ptr) Variable Function 679 826(R): 76(ptr) Variable Function 680 836(NdotR): 25(ptr) Variable Function 681 846(spec): 76(ptr) Variable Function 682 896(param): 76(ptr) Variable Function 683 900(param): 76(ptr) Variable Function 684 157: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 44 685 158: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 155 155 12 12 686 Store 152(global_var) 156 687 533: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 96 688 534: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 97 97 12 12 689 532: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 96 14(main) 690 540: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 538 538 12 12 691 539: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 536 535(fragPos) 49 692 541: 104 Load 110(samplerposition) 693 542: 27(fvec2) Load 138(inUV) 694 543: 19(fvec4) ImageSampleImplicitLod 541 542 695 544: 74(fvec3) VectorShuffle 543 543 0 1 2 696 Store 535(fragPos) 544 697 550: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 548 548 12 12 698 549: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 546 545(normal) 49 699 551: 104 Load 114(samplerNormal) 700 552: 27(fvec2) Load 138(inUV) 701 553: 19(fvec4) ImageSampleImplicitLod 551 552 702 554: 74(fvec3) VectorShuffle 553 553 0 1 2 703 Store 545(normal) 554 704 560: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 558 558 12 12 705 559: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 556 555(albedo) 49 706 561: 104 Load 118(samplerAlbedo) 707 562: 27(fvec2) Load 138(inUV) 708 563: 19(fvec4) ImageSampleImplicitLod 561 562 709 Store 555(albedo) 563 710 567: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 568 568 12 12 711 566: 564(ptr) AccessChain 200(ubo) 481 712 569: 147(int) Load 566 713 570: 161(bool) SGreaterThan 569 156 714 SelectionMerge 572 None 715 BranchConditional 570 571 572 716 571: Label 717 576: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 573 718 577: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 574 574 12 12 719 575: 564(ptr) AccessChain 200(ubo) 481 720 578: 147(int) Load 575 721 SelectionMerge 584 None 722 Switch 578 584 723 case 1: 579 724 case 2: 580 725 case 3: 581 726 case 4: 582 727 case 5: 583 728 579: Label 729 587: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 573 730 588: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 589 589 12 12 731 Store 586(param) 585 732 591: 74(fvec3) Load 535(fragPos) 733 Store 590(param) 591 734 592: 74(fvec3) FunctionCall 82(shadow(vf3;vf3;) 586(param) 590(param) 735 595: 593(ptr) AccessChain 143(outFragColor) 12 736 596: 16(float) CompositeExtract 592 0 737 Store 595 596 738 597: 593(ptr) AccessChain 143(outFragColor) 45 739 598: 16(float) CompositeExtract 592 1 740 Store 597 598 741 599: 593(ptr) AccessChain 143(outFragColor) 28 742 600: 16(float) CompositeExtract 592 2 743 Store 599 600 744 601: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 602 602 12 12 745 Branch 584 746 580: Label 747 605: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 573 748 606: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 607 607 12 12 749 604: 74(fvec3) Load 535(fragPos) 750 608: 593(ptr) AccessChain 143(outFragColor) 12 751 609: 16(float) CompositeExtract 604 0 752 Store 608 609 753 610: 593(ptr) AccessChain 143(outFragColor) 45 754 611: 16(float) CompositeExtract 604 1 755 Store 610 611 756 612: 593(ptr) AccessChain 143(outFragColor) 28 757 613: 16(float) CompositeExtract 604 2 758 Store 612 613 759 614: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 615 615 12 12 760 Branch 584 761 581: Label 762 618: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 573 763 619: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 620 620 12 12 764 617: 74(fvec3) Load 545(normal) 765 621: 593(ptr) AccessChain 143(outFragColor) 12 766 622: 16(float) CompositeExtract 617 0 767 Store 621 622 768 623: 593(ptr) AccessChain 143(outFragColor) 45 769 624: 16(float) CompositeExtract 617 1 770 Store 623 624 771 625: 593(ptr) AccessChain 143(outFragColor) 28 772 626: 16(float) CompositeExtract 617 2 773 Store 625 626 774 627: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 628 628 12 12 775 Branch 584 776 582: Label 777 631: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 573 778 632: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 633 633 12 12 779 630: 19(fvec4) Load 555(albedo) 780 634: 74(fvec3) VectorShuffle 630 630 0 1 2 781 635: 593(ptr) AccessChain 143(outFragColor) 12 782 636: 16(float) CompositeExtract 634 0 783 Store 635 636 784 637: 593(ptr) AccessChain 143(outFragColor) 45 785 638: 16(float) CompositeExtract 634 1 786 Store 637 638 787 639: 593(ptr) AccessChain 143(outFragColor) 28 788 640: 16(float) CompositeExtract 634 2 789 Store 639 640 790 641: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 642 642 12 12 791 Branch 584 792 583: Label 793 645: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 573 794 646: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 647 647 12 12 795 644: 19(fvec4) Load 555(albedo) 796 648: 74(fvec3) VectorShuffle 644 644 3 3 3 797 649: 593(ptr) AccessChain 143(outFragColor) 12 798 650: 16(float) CompositeExtract 648 0 799 Store 649 650 800 651: 593(ptr) AccessChain 143(outFragColor) 45 801 652: 16(float) CompositeExtract 648 1 802 Store 651 652 803 653: 593(ptr) AccessChain 143(outFragColor) 28 804 654: 16(float) CompositeExtract 648 2 805 Store 653 654 806 655: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 656 656 12 12 807 Branch 584 808 584: Label 809 660: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 573 810 661: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 662 662 12 12 811 659: 593(ptr) AccessChain 143(outFragColor) 13 812 Store 659 209 813 663: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 664 664 12 12 814 Return 815 572: Label 816 670: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 96 817 671: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 668 668 12 12 818 669: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 667 666(fragcolor) 49 819 672: 19(fvec4) Load 555(albedo) 820 673: 74(fvec3) VectorShuffle 672 672 0 1 2 821 675: 74(fvec3) VectorTimesScalar 673 674 822 Store 666(fragcolor) 675 823 681: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 679 679 12 12 824 680: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 677 676(N) 49 825 682: 74(fvec3) Load 545(normal) 826 683: 74(fvec3) ExtInst 3(GLSL.std.450) 69(Normalize) 682 827 Store 676(N) 683 828 689: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 684 829 690: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 685 685 12 12 830 688: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 687 686(i) 49 831 Store 686(i) 156 832 Branch 691 833 691: Label 834 695: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 684 835 696: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 685 685 12 12 836 LoopMerge 693 694 None 837 Branch 697 838 697: Label 839 699: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 684 840 700: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 685 685 12 12 841 698: 147(int) Load 686(i) 842 701: 161(bool) SLessThan 698 481 843 BranchConditional 701 692 693 844 692: Label 845 707: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 684 846 708: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 705 705 12 12 847 706: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 703 702(L) 49 848 709: 147(int) Load 686(i) 849 712: 710(ptr) AccessChain 200(ubo) 373 709 156 850 713: 19(fvec4) Load 712 851 714: 74(fvec3) VectorShuffle 713 713 0 1 2 852 715: 74(fvec3) Load 535(fragPos) 853 716: 74(fvec3) FSub 714 715 854 Store 702(L) 716 855 721: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 719 719 12 12 856 720: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 718 717(dist) 49 857 722: 74(fvec3) Load 702(L) 858 723: 16(float) ExtInst 3(GLSL.std.450) 66(Length) 722 859 Store 717(dist) 723 860 725: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 726 726 12 12 861 724: 74(fvec3) Load 702(L) 862 727: 74(fvec3) ExtInst 3(GLSL.std.450) 69(Normalize) 724 863 Store 702(L) 727 864 733: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 731 731 12 12 865 732: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 729 728(V) 49 866 734: 710(ptr) AccessChain 200(ubo) 156 867 735: 19(fvec4) Load 734 868 736: 74(fvec3) VectorShuffle 735 735 0 1 2 869 737: 74(fvec3) Load 535(fragPos) 870 738: 74(fvec3) FSub 736 737 871 Store 728(V) 738 872 740: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 741 741 12 12 873 739: 74(fvec3) Load 728(V) 874 742: 74(fvec3) ExtInst 3(GLSL.std.450) 69(Normalize) 739 875 Store 728(V) 742 876 748: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 746 746 12 12 877 747: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 744 743(lightCosInnerAngle) 49 878 Store 743(lightCosInnerAngle) 749 879 755: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 753 753 12 12 880 754: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 751 750(lightCosOuterAngle) 49 881 Store 750(lightCosOuterAngle) 756 882 762: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 760 760 12 12 883 761: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 758 757(lightRange) 49 884 Store 757(lightRange) 763 885 769: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 767 767 12 12 886 768: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 765 764(dir) 49 887 770: 147(int) Load 686(i) 888 771: 710(ptr) AccessChain 200(ubo) 373 770 156 889 772: 19(fvec4) Load 771 890 773: 74(fvec3) VectorShuffle 772 772 0 1 2 891 774: 147(int) Load 686(i) 892 775: 710(ptr) AccessChain 200(ubo) 373 774 373 893 776: 19(fvec4) Load 775 894 777: 74(fvec3) VectorShuffle 776 776 0 1 2 895 778: 74(fvec3) FSub 773 777 896 779: 74(fvec3) ExtInst 3(GLSL.std.450) 69(Normalize) 778 897 Store 764(dir) 779 898 785: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 783 783 12 12 899 784: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 781 780(cosDir) 49 900 786: 74(fvec3) Load 702(L) 901 787: 74(fvec3) Load 764(dir) 902 788: 16(float) Dot 786 787 903 Store 780(cosDir) 788 904 794: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 792 792 12 12 905 793: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 790 789(spotEffect) 49 906 795: 16(float) Load 750(lightCosOuterAngle) 907 796: 16(float) Load 743(lightCosInnerAngle) 908 797: 16(float) Load 780(cosDir) 909 798: 16(float) ExtInst 3(GLSL.std.450) 49(SmoothStep) 795 796 797 910 Store 789(spotEffect) 798 911 804: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 802 802 12 12 912 803: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 800 799(heightAttenuation) 49 913 805: 16(float) Load 757(lightRange) 914 806: 16(float) Load 717(dist) 915 807: 16(float) ExtInst 3(GLSL.std.450) 49(SmoothStep) 805 275 806 916 Store 799(heightAttenuation) 807 917 813: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 811 811 12 12 918 812: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 809 808(NdotL) 49 919 814: 74(fvec3) Load 676(N) 920 815: 74(fvec3) Load 702(L) 921 816: 16(float) Dot 814 815 922 817: 16(float) ExtInst 3(GLSL.std.450) 40(FMax) 275 816 923 Store 808(NdotL) 817 924 823: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 821 821 12 12 925 822: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 819 818(diff) 49 926 824: 16(float) Load 808(NdotL) 927 825: 74(fvec3) CompositeConstruct 824 824 824 928 Store 818(diff) 825 929 831: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 829 829 12 12 930 830: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 827 826(R) 49 931 832: 74(fvec3) Load 702(L) 932 833: 74(fvec3) FNegate 832 933 834: 74(fvec3) Load 676(N) 934 835: 74(fvec3) ExtInst 3(GLSL.std.450) 71(Reflect) 833 834 935 Store 826(R) 835 936 841: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 839 839 12 12 937 840: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 837 836(NdotR) 49 938 842: 74(fvec3) Load 826(R) 939 843: 74(fvec3) Load 728(V) 940 844: 16(float) Dot 842 843 941 845: 16(float) ExtInst 3(GLSL.std.450) 40(FMax) 275 844 942 Store 836(NdotR) 845 943 851: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 849 849 12 12 944 850: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 847 846(spec) 49 945 852: 16(float) Load 836(NdotR) 946 854: 16(float) ExtInst 3(GLSL.std.450) 26(Pow) 852 853 947 855: 25(ptr) AccessChain 555(albedo) 13 948 856: 16(float) Load 855 949 857: 16(float) FMul 854 856 950 859: 16(float) FMul 857 858 951 860: 74(fvec3) CompositeConstruct 859 859 859 952 Store 846(spec) 860 953 862: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 863 863 12 12 954 861: 74(fvec3) Load 818(diff) 955 864: 74(fvec3) Load 846(spec) 956 865: 74(fvec3) FAdd 861 864 957 866: 16(float) Load 789(spotEffect) 958 867: 74(fvec3) VectorTimesScalar 865 866 959 868: 16(float) Load 799(heightAttenuation) 960 869: 74(fvec3) VectorTimesScalar 867 868 961 870: 147(int) Load 686(i) 962 872: 710(ptr) AccessChain 200(ubo) 373 870 871 963 873: 19(fvec4) Load 872 964 874: 74(fvec3) VectorShuffle 873 873 0 1 2 965 875: 74(fvec3) FMul 869 874 966 876: 19(fvec4) Load 555(albedo) 967 877: 74(fvec3) VectorShuffle 876 876 0 1 2 968 878: 74(fvec3) FMul 875 877 969 879: 74(fvec3) Load 666(fragcolor) 970 880: 74(fvec3) FAdd 879 878 971 Store 666(fragcolor) 880 972 Branch 694 973 694: Label 974 882: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 684 975 883: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 685 685 12 12 976 881: 147(int) Load 686(i) 977 884: 147(int) IAdd 881 373 978 Store 686(i) 884 979 Branch 691 980 693: Label 981 886: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 96 982 887: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 888 888 12 12 983 885: 564(ptr) AccessChain 200(ubo) 871 984 889: 147(int) Load 885 985 890: 161(bool) SGreaterThan 889 156 986 SelectionMerge 892 None 987 BranchConditional 890 891 892 988 891: Label 989 898: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 893 990 899: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 894 894 12 12 991 897: 74(fvec3) Load 666(fragcolor) 992 Store 896(param) 897 993 901: 74(fvec3) Load 535(fragPos) 994 Store 900(param) 901 995 902: 74(fvec3) FunctionCall 82(shadow(vf3;vf3;) 896(param) 900(param) 996 Store 666(fragcolor) 902 997 Branch 892 998 892: Label 999 904: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 96 1000 905: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 906 906 12 12 1001 903: 74(fvec3) Load 666(fragcolor) 1002 907: 16(float) CompositeExtract 903 0 1003 908: 16(float) CompositeExtract 903 1 1004 909: 16(float) CompositeExtract 903 2 1005 910: 19(fvec4) CompositeConstruct 907 908 909 209 1006 Store 143(outFragColor) 910 1007 911: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 912 912 12 12 1008 Return 1009 FunctionEnd 101037(textureProj(vf4;f1;vf2;): 16(float) Function None 32 1011 34(P): 22(ptr) FunctionParameter 1012 35(layer): 25(ptr) FunctionParameter 1013 36(offset): 30(ptr) FunctionParameter 1014 38: Label 1015 204(shadow): 25(ptr) Variable Function 1016210(shadowCoord): 22(ptr) Variable Function 1017 254(dist): 25(ptr) Variable Function 1018 50: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 40 1019 51: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 43 43 12 12 1020 48: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 46 34(P) 49 1021 54: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 52 35(layer) 49 1022 57: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 55 36(offset) 49 1023 203: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 40 37(textureProj(vf4;f1;vf2;) 1024 208: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 206 206 12 12 1025 207: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 205 204(shadow) 49 1026 Store 204(shadow) 209 1027 215: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 213 213 12 12 1028 214: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 211 210(shadowCoord) 49 1029 216: 19(fvec4) Load 34(P) 1030 217: 25(ptr) AccessChain 34(P) 13 1031 218: 16(float) Load 217 1032 219: 19(fvec4) CompositeConstruct 218 218 218 218 1033 220: 19(fvec4) FDiv 216 219 1034 Store 210(shadowCoord) 220 1035 222: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 223 223 12 12 1036 221: 19(fvec4) Load 210(shadowCoord) 1037 224: 27(fvec2) VectorShuffle 221 221 0 1 1038 226: 27(fvec2) VectorTimesScalar 224 225 1039 227: 27(fvec2) CompositeConstruct 225 225 1040 228: 27(fvec2) FAdd 226 227 1041 229: 25(ptr) AccessChain 210(shadowCoord) 12 1042 230: 16(float) CompositeExtract 228 0 1043 Store 229 230 1044 231: 25(ptr) AccessChain 210(shadowCoord) 45 1045 232: 16(float) CompositeExtract 228 1 1046 Store 231 232 1047 234: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 235 235 12 12 1048 233: 25(ptr) AccessChain 210(shadowCoord) 28 1049 236: 16(float) Load 233 1050 238: 161(bool) FOrdGreaterThan 236 237 1051 SelectionMerge 240 None 1052 BranchConditional 238 239 240 1053 239: Label 1054 242: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 40 1055 243: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 235 235 12 12 1056 241: 25(ptr) AccessChain 210(shadowCoord) 28 1057 244: 16(float) Load 241 1058 245: 161(bool) FOrdLessThan 244 209 1059 Branch 240 1060 240: Label 1061 246: 161(bool) Phi 238 38 245 239 1062 249: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 40 1063 250: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 235 235 12 12 1064 SelectionMerge 248 None 1065 BranchConditional 246 247 248 1066 247: Label 1067 258: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 251 1068 259: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 252 252 12 12 1069 257: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 255 254(dist) 49 1070 260: 127 Load 133(samplerShadowMap) 1071 261: 19(fvec4) Load 210(shadowCoord) 1072 262: 27(fvec2) VectorShuffle 261 261 0 1 1073 263: 27(fvec2) Load 36(offset) 1074 264: 27(fvec2) FAdd 262 263 1075 265: 16(float) Load 35(layer) 1076 266: 16(float) CompositeExtract 264 0 1077 267: 16(float) CompositeExtract 264 1 1078 268: 74(fvec3) CompositeConstruct 266 267 265 1079 269: 19(fvec4) ImageSampleImplicitLod 260 268 1080 270: 16(float) CompositeExtract 269 0 1081 Store 254(dist) 270 1082 272: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 273 273 12 12 1083 271: 25(ptr) AccessChain 210(shadowCoord) 13 1084 274: 16(float) Load 271 1085 276: 161(bool) FOrdGreaterThan 274 275 1086 SelectionMerge 278 None 1087 BranchConditional 276 277 278 1088 277: Label 1089 280: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 251 1090 281: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 273 273 12 12 1091 279: 16(float) Load 254(dist) 1092 282: 25(ptr) AccessChain 210(shadowCoord) 28 1093 283: 16(float) Load 282 1094 284: 161(bool) FOrdLessThan 279 283 1095 Branch 278 1096 278: Label 1097 285: 161(bool) Phi 276 247 284 277 1098 288: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 251 1099 289: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 273 273 12 12 1100 SelectionMerge 287 None 1101 BranchConditional 285 286 287 1102 286: Label 1103 294: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 290 1104 295: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 291 291 12 12 1105 Store 204(shadow) 293 1106 Branch 287 1107 287: Label 1108 Branch 248 1109 248: Label 1110 297: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 40 1111 298: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 299 299 12 12 1112 296: 16(float) Load 204(shadow) 1113 ReturnValue 296 1114 FunctionEnd 111562(filterPCF(vf4;f1;): 16(float) Function None 58 1116 60(sc): 22(ptr) FunctionParameter 1117 61(layer): 25(ptr) FunctionParameter 1118 63: Label 1119 310(texDim): 308(ptr) Variable Function 1120 322(scale): 25(ptr) Variable Function 1121 329(dx): 25(ptr) Variable Function 1122 343(dy): 25(ptr) Variable Function 1123355(shadowFactor): 25(ptr) Variable Function 1124 361(count): 337(ptr) Variable Function 1125 367(range): 337(ptr) Variable Function 1126 376(x): 337(ptr) Variable Function 1127 398(y): 337(ptr) Variable Function 1128 430(param): 22(ptr) Variable Function 1129 432(param): 25(ptr) Variable Function 1130 434(param): 30(ptr) Variable Function 1131 70: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 65 1132 71: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 66 66 12 12 1133 69: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 67 60(sc) 49 1134 73: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 72 61(layer) 49 1135 305: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 65 62(filterPCF(vf4;f1;) 1136 315: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 313 313 12 12 1137 314: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 311 310(texDim) 49 1138 316: 127 Load 133(samplerShadowMap) 1139 317: 122 Image 316 1140 320: 318(ivec3) ImageQuerySizeLod 317 156 1141 321: 306(ivec2) VectorShuffle 320 320 0 1 1142 Store 310(texDim) 321 1143 327: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 325 325 12 12 1144 326: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 323 322(scale) 49 1145 Store 322(scale) 328 1146 334: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 332 332 12 12 1147 333: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 330 329(dx) 49 1148 335: 16(float) Load 322(scale) 1149 336: 16(float) FMul 335 209 1150 339: 337(ptr) AccessChain 310(texDim) 12 1151 340: 147(int) Load 339 1152 341: 16(float) ConvertSToF 340 1153 342: 16(float) FDiv 336 341 1154 Store 329(dx) 342 1155 348: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 346 346 12 12 1156 347: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 344 343(dy) 49 1157 349: 16(float) Load 322(scale) 1158 350: 16(float) FMul 349 209 1159 351: 337(ptr) AccessChain 310(texDim) 45 1160 352: 147(int) Load 351 1161 353: 16(float) ConvertSToF 352 1162 354: 16(float) FDiv 350 353 1163 Store 343(dy) 354 1164 360: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 358 358 12 12 1165 359: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 356 355(shadowFactor) 49 1166 Store 355(shadowFactor) 275 1167 366: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 364 364 12 12 1168 365: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 362 361(count) 49 1169 Store 361(count) 156 1170 372: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 370 370 12 12 1171 371: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 368 367(range) 49 1172 Store 367(range) 373 1173 380: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 374 1174 381: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 375 375 12 12 1175 379: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 377 376(x) 49 1176 382: 147(int) Load 367(range) 1177 383: 147(int) SNegate 382 1178 Store 376(x) 383 1179 Branch 384 1180 384: Label 1181 388: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 374 1182 389: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 375 375 12 12 1183 LoopMerge 386 387 None 1184 Branch 390 1185 390: Label 1186 392: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 374 1187 393: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 375 375 12 12 1188 391: 147(int) Load 376(x) 1189 394: 147(int) Load 367(range) 1190 395: 161(bool) SLessThanEqual 391 394 1191 BranchConditional 395 385 386 1192 385: Label 1193 402: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 396 1194 403: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 397 397 12 12 1195 401: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 399 398(y) 49 1196 404: 147(int) Load 367(range) 1197 405: 147(int) SNegate 404 1198 Store 398(y) 405 1199 Branch 406 1200 406: Label 1201 410: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 396 1202 411: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 397 397 12 12 1203 LoopMerge 408 409 None 1204 Branch 412 1205 412: Label 1206 414: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 396 1207 415: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 397 397 12 12 1208 413: 147(int) Load 398(y) 1209 416: 147(int) Load 367(range) 1210 417: 161(bool) SLessThanEqual 413 416 1211 BranchConditional 417 407 408 1212 407: Label 1213 419: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 396 1214 420: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 421 421 12 12 1215 418: 16(float) Load 329(dx) 1216 422: 147(int) Load 376(x) 1217 423: 16(float) ConvertSToF 422 1218 424: 16(float) FMul 418 423 1219 425: 16(float) Load 343(dy) 1220 426: 147(int) Load 398(y) 1221 427: 16(float) ConvertSToF 426 1222 428: 16(float) FMul 425 427 1223 429: 27(fvec2) CompositeConstruct 424 428 1224 431: 19(fvec4) Load 60(sc) 1225 Store 430(param) 431 1226 433: 16(float) Load 61(layer) 1227 Store 432(param) 433 1228 Store 434(param) 429 1229 435: 16(float) FunctionCall 37(textureProj(vf4;f1;vf2;) 430(param) 432(param) 434(param) 1230 436: 16(float) Load 355(shadowFactor) 1231 437: 16(float) FAdd 436 435 1232 Store 355(shadowFactor) 437 1233 439: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 440 440 12 12 1234 438: 147(int) Load 361(count) 1235 441: 147(int) IAdd 438 373 1236 Store 361(count) 441 1237 Branch 409 1238 409: Label 1239 443: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 396 1240 444: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 397 397 12 12 1241 442: 147(int) Load 398(y) 1242 445: 147(int) IAdd 442 373 1243 Store 398(y) 445 1244 Branch 406 1245 408: Label 1246 Branch 387 1247 387: Label 1248 447: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 374 1249 448: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 375 375 12 12 1250 446: 147(int) Load 376(x) 1251 449: 147(int) IAdd 446 373 1252 Store 376(x) 449 1253 Branch 384 1254 386: Label 1255 451: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 65 1256 452: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 453 453 12 12 1257 450: 16(float) Load 355(shadowFactor) 1258 454: 147(int) Load 361(count) 1259 455: 16(float) ConvertSToF 454 1260 456: 16(float) FDiv 450 455 1261 ReturnValue 456 1262 FunctionEnd 126382(shadow(vf3;vf3;): 74(fvec3) Function None 78 1264 80(fragcolor): 76(ptr) FunctionParameter 1265 81(fragpos): 76(ptr) FunctionParameter 1266 83: Label 1267 465(i): 337(ptr) Variable Function 1268 483(shadowClip): 22(ptr) Variable Function 1269501(shadowFactor): 25(ptr) Variable Function 1270 510(param): 22(ptr) Variable Function 1271 512(param): 25(ptr) Variable Function 1272 90: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 85 1273 91: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 86 86 12 12 1274 89: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 87 80(fragcolor) 49 1275 94: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 92 81(fragpos) 49 1276 462: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 85 82(shadow(vf3;vf3;) 1277 469: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 463 1278 470: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 464 464 12 12 1279 468: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 466 465(i) 49 1280 Store 465(i) 156 1281 Branch 471 1282 471: Label 1283 475: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 463 1284 476: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 464 464 12 12 1285 LoopMerge 473 474 None 1286 Branch 477 1287 477: Label 1288 479: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 463 1289 480: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 464 464 12 12 1290 478: 147(int) Load 465(i) 1291 482: 161(bool) SLessThan 478 481 1292 BranchConditional 482 472 473 1293 472: Label 1294 488: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 463 1295 489: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 486 486 12 12 1296 487: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 484 483(shadowClip) 49 1297 490: 147(int) Load 465(i) 1298 493: 491(ptr) AccessChain 200(ubo) 373 490 481 1299 494: 159 Load 493 1300 495: 74(fvec3) Load 81(fragpos) 1301 496: 16(float) CompositeExtract 495 0 1302 497: 16(float) CompositeExtract 495 1 1303 498: 16(float) CompositeExtract 495 2 1304 499: 19(fvec4) CompositeConstruct 496 497 498 209 1305 500: 19(fvec4) MatrixTimesVector 494 499 1306 Store 483(shadowClip) 500 1307 505: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 503 503 12 12 1308 504: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 502 501(shadowFactor) 49 1309 507: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 508 508 12 12 1310 506: 147(int) Load 465(i) 1311 509: 16(float) ConvertSToF 506 1312 511: 19(fvec4) Load 483(shadowClip) 1313 Store 510(param) 511 1314 Store 512(param) 509 1315 513: 16(float) FunctionCall 62(filterPCF(vf4;f1;) 510(param) 512(param) 1316 Store 501(shadowFactor) 513 1317 515: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 516 516 12 12 1318 514: 16(float) Load 501(shadowFactor) 1319 517: 74(fvec3) Load 80(fragcolor) 1320 518: 74(fvec3) VectorTimesScalar 517 514 1321 Store 80(fragcolor) 518 1322 Branch 474 1323 474: Label 1324 520: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 463 1325 521: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 464 464 12 12 1326 519: 147(int) Load 465(i) 1327 522: 147(int) IAdd 519 373 1328 Store 465(i) 522 1329 Branch 471 1330 473: Label 1331 524: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 85 1332 525: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 41 526 526 12 12 1333 523: 74(fvec3) Load 80(fragcolor) 1334 ReturnValue 523 1335 FunctionEnd